KiCad PCB EDA Suite
Loading...
Searching...
No Matches
draw_panel_gal.cpp File Reference
#include <wx/dcclient.h>
#include <chrono>
#include <eda_draw_frame.h>
#include <kiface_base.h>
#include <macros.h>
#include <scoped_set_reset.h>
#include <settings/app_settings.h>
#include <trace_helpers.h>
#include <class_draw_panel_gal.h>
#include <view/view.h>
#include <view/wx_view_controls.h>
#include <gal/painter.h>
#include <base_screen.h>
#include <gal/cursors.h>
#include <gal/graphics_abstraction_layer.h>
#include <gal/opengl/opengl_gal.h>
#include <gal/opengl/gpu_oom_error.h>
#include <gal/cairo/cairo_gal.h>
#include <gal/gal_modern.h>
#include <rhi/render_thread.h>
#include <rhi/rhi_device_proxy.h>
#include <rhi/swapchain_controller.h>
#include <rhi/frame_mailbox.h>
#include <rhi/frame_packet.h>
#include <rhi/rhi_surface.h>
#include <advanced_config.h>
#include <frame_type.h>
#include <math/vector2wx.h>
#include <tool/tool_dispatcher.h>
#include <tool/tool_manager.h>
#include <widgets/wx_infobar.h>
#include <kiplatform/touchpad.h>
#include <kiplatform/ui.h>
#include <atomic>
#include <stdexcept>
#include <core/profile.h>
#include <wx/display.h>
#include <wx/utils.h>
#include <pgm_base.h>
#include <confirm.h>

Go to the source code of this file.

Functions

static KIGFX::RHI_LINE_PIPELINE_KIND DetermineLinePipelineKind (const EDA_DRAW_FRAME *aFrame)
 
static RHI_NATIVE_WINDOW_HANDLE GetNativeWindowHandle (wxWindow *aWindow)
 
static void ApplyAntialiasingMode (KIGFX::FRAME_DRAW_DESC &aDesc, KIGFX::GAL_ANTIALIASING_MODE aMode)
 

Variables

static const wxChar traceDrawPanel [] = wxT( "KICAD_DRAW_PANEL" )
 Flag to enable drawing panel debugging output.
 
static std::atomic< uint64_t > s_inputSerial { 0 }
 
static constexpr int MAX_CONTEXT_BIND_RETRIES = 2
 Frames to drop before giving up on the GL context and letting the backend recover.
 

Function Documentation

◆ ApplyAntialiasingMode()

static void ApplyAntialiasingMode ( KIGFX::FRAME_DRAW_DESC & aDesc,
KIGFX::GAL_ANTIALIASING_MODE aMode )
static

◆ DetermineLinePipelineKind()

◆ GetNativeWindowHandle()

Variable Documentation

◆ MAX_CONTEXT_BIND_RETRIES

int MAX_CONTEXT_BIND_RETRIES = 2
staticconstexpr

Frames to drop before giving up on the GL context and letting the backend recover.

Definition at line 578 of file draw_panel_gal.cpp.

Referenced by EDA_DRAW_PANEL_GAL::DoRePaint().

◆ s_inputSerial

std::atomic<uint64_t> s_inputSerial { 0 }
static