Home
last modified time | relevance | path

Searched refs:gfx (Results 1 – 25 of 208) sorted by relevance

123456789

/third_party/cef/libcef/browser/osr/
Dbrowser_platform_delegate_osr.cc170 gfx::Point CefBrowserPlatformDelegateOsr::GetScreenPoint( in GetScreenPoint()
171 const gfx::Point& view) const { in GetScreenPoint()
177 return gfx::Point(screenX, screenY); in GetScreenPoint()
298 const gfx::Point client_pt(event.x, event.y); in DragTargetDragEnter()
299 gfx::PointF transformed_pt; in DragTargetDragEnter()
304 gfx::PointF(client_pt), &transformed_pt) in DragTargetDragEnter()
314 const gfx::Point& screen_pt = GetScreenPoint(client_pt); in DragTargetDragEnter()
329 gfx::PointF(screen_pt), ops, in DragTargetDragEnter()
344 const gfx::Point client_pt(event.x, event.y); in DragTargetDragOver()
345 const gfx::Point& screen_pt = GetScreenPoint(client_pt); in DragTargetDragOver()
[all …]
Drender_widget_host_view_osr.h107 void InitAsChild(gfx::NativeView parent_view) override;
108 void SetSize(const gfx::Size& size) override;
109 void SetBounds(const gfx::Rect& rect) override;
110 gfx::NativeView GetNativeView() override;
111 gfx::NativeViewAccessible GetNativeViewAccessible() override;
121 gfx::Rect GetViewBounds() override;
139 void SetWindowFrameInScreen(const gfx::Rect& rect) override;
151 const gfx::Rect& bounds,
152 const gfx::Rect& anchor_rect) override;
159 gfx::Size GetCompositorViewportPixelSize() override;
[all …]
Dhost_display_client_osr.cc40 gfx::Size GetPixelSize() const;
43 void OnAllocatedSharedMemory(const gfx::Size& pixel_size,
45 void Draw(const gfx::Rect& damage_rect, DrawCallback draw_callback) override;
52 gfx::Size pixel_size_;
70 gfx::Size CefLayeredWindowUpdaterOSR::GetPixelSize() const { in GetPixelSize()
75 const gfx::Size& pixel_size, in OnAllocatedSharedMemory()
89 void CefLayeredWindowUpdaterOSR::Draw(const gfx::Rect& damage_rect, in Draw()
105 gfx::AcceleratedWidget widget) in CefHostDisplayClientOSR()
122 gfx::Size CefHostDisplayClientOSR::GetPixelSize() const { in GetPixelSize()
124 : gfx::Size{}; in GetPixelSize()
[all …]
Dweb_contents_view_osr.cc45 gfx::NativeView CefWebContentsViewOSR::GetNativeView() const { in GetNativeView()
46 return gfx::NativeView(); in GetNativeView()
49 gfx::NativeView CefWebContentsViewOSR::GetContentNativeView() const { in GetContentNativeView()
50 return gfx::NativeView(); in GetContentNativeView()
53 gfx::NativeWindow CefWebContentsViewOSR::GetTopLevelNativeWindow() const { in GetTopLevelNativeWindow()
54 return gfx::NativeWindow(); in GetTopLevelNativeWindow()
57 gfx::Rect CefWebContentsViewOSR::GetContainerBounds() const { in GetContainerBounds()
100 gfx::Rect CefWebContentsViewOSR::GetViewBounds() const { in GetViewBounds()
102 return view ? view->GetViewBounds() : gfx::Rect(); in GetViewBounds()
105 void CefWebContentsViewOSR::CreateView(gfx::NativeView context) {} in CreateView()
[all …]
Dweb_contents_view_osr.h41 gfx::NativeView GetNativeView() const override;
42 gfx::NativeView GetContentNativeView() const override;
43 gfx::NativeWindow GetTopLevelNativeWindow() const override;
44 gfx::Rect GetContainerBounds() const override;
51 gfx::Rect GetViewBounds() const override;
52 void CreateView(gfx::NativeView context) override;
71 const gfx::ImageSkia& image,
72 const gfx::Vector2d& image_offset,
Drender_widget_host_view_osr.cc71 gfx::Rect(src.rect.x, src.rect.y, src.rect.width, src.rect.height); in ScreenInfoFrom()
73 gfx::Rect(src.available_rect.x, src.available_rect.y, in ScreenInfoFrom()
148 gfx::Rect GetViewBounds(AlloyBrowserHostImpl* browser) { in GetViewBounds()
150 return gfx::Rect(); in GetViewBounds()
161 return gfx::Rect(rc.x, rc.y, rc.width, rc.height); in GetViewBounds()
232 compositor_->SetAcceleratedWidget(gfx::kNullAcceleratedWidget); in CefRenderWidgetHostViewOSR()
297 void CefRenderWidgetHostViewOSR::InitAsChild(gfx::NativeView parent_view) { in InitAsChild()
315 void CefRenderWidgetHostViewOSR::SetSize(const gfx::Size& size) {} in SetSize()
317 void CefRenderWidgetHostViewOSR::SetBounds(const gfx::Rect& rect) {} in SetBounds()
319 gfx::NativeView CefRenderWidgetHostViewOSR::GetNativeView() { in GetNativeView()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Dgfx7_cmd_buffer.c52 uint32_t count = cmd_buffer->state.gfx.dynamic.scissor.count; in gfx7_cmd_buffer_emit_scissor()
53 const VkRect2D *scissors = cmd_buffer->state.gfx.dynamic.scissor.scissors; in gfx7_cmd_buffer_emit_scissor()
165 cmd_buffer->state.gfx.dirty |= ANV_CMD_DIRTY_INDEX_BUFFER; in genX()
168 cmd_buffer->state.gfx.gfx7.index_buffer = buffer; in genX()
169 cmd_buffer->state.gfx.gfx7.index_type = vk_to_intel_index_type(indexType); in genX()
170 cmd_buffer->state.gfx.gfx7.index_offset = offset; in genX()
206 struct anv_graphics_pipeline *pipeline = cmd_buffer->state.gfx.pipeline; in genX()
207 struct anv_dynamic_state *d = &cmd_buffer->state.gfx.dynamic; in genX()
209 if (cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_PRIMITIVE_TOPOLOGY) { in genX()
216 cmd_buffer->state.gfx.primitive_topology = topology; in genX()
[all …]
Danv_cmd_buffer.c228 state->gfx.dynamic = default_dynamic_state; in anv_cmd_state_init()
249 anv_cmd_pipeline_state_finish(cmd_buffer, &state->gfx.base); in anv_cmd_state_finish()
501 if (cmd_buffer->state.gfx.pipeline == gfx_pipeline) in anv_CmdBindPipeline()
504 cmd_buffer->state.gfx.pipeline = gfx_pipeline; in anv_CmdBindPipeline()
505 cmd_buffer->state.gfx.vb_dirty |= gfx_pipeline->vb_used; in anv_CmdBindPipeline()
506 cmd_buffer->state.gfx.dirty |= ANV_CMD_DIRTY_PIPELINE; in anv_CmdBindPipeline()
514 cmd_buffer->state.gfx.dirty |= in anv_CmdBindPipeline()
515 anv_dynamic_state_copy(&cmd_buffer->state.gfx.dynamic, in anv_CmdBindPipeline()
549 cmd_buffer->state.gfx.dynamic.raster_discard = rasterizerDiscardEnable; in anv_CmdSetRasterizerDiscardEnableEXT()
551 cmd_buffer->state.gfx.dirty |= ANV_CMD_DIRTY_DYNAMIC_RASTERIZER_DISCARD_ENABLE; in anv_CmdSetRasterizerDiscardEnableEXT()
[all …]
Dgfx8_cmd_buffer.c41 uint32_t count = cmd_buffer->state.gfx.dynamic.viewport.count; in gfx8_cmd_buffer_emit_viewport()
43 cmd_buffer->state.gfx.dynamic.viewport.viewports; in gfx8_cmd_buffer_emit_viewport()
98 uint32_t count = cmd_buffer->state.gfx.dynamic.viewport.count; in gfx8_cmd_buffer_emit_depth_viewport()
100 cmd_buffer->state.gfx.dynamic.viewport.viewports; in gfx8_cmd_buffer_emit_depth_viewport()
255 struct anv_graphics_pipeline *pipeline = cmd_buffer->state.gfx.pipeline; in want_depth_pma_fix()
365 struct anv_graphics_pipeline *pipeline = cmd_buffer->state.gfx.pipeline; in want_stencil_pma_fix()
394 (cmd_buffer->state.gfx.dynamic.stencil_write_mask.front || in want_stencil_pma_fix()
395 cmd_buffer->state.gfx.dynamic.stencil_write_mask.back) && in want_stencil_pma_fix()
420 struct anv_graphics_pipeline *pipeline = cmd_buffer->state.gfx.pipeline; in genX()
421 struct anv_dynamic_state *d = &cmd_buffer->state.gfx.dynamic; in genX()
[all …]
/third_party/cef/libcef/browser/views/
Dview_util.h18 namespace gfx {
76 display::Display GetDisplayNearestPoint(const gfx::Point& point,
82 display::Display GetDisplayMatchingBounds(const gfx::Rect& bounds,
87 void ConvertPointFromPixels(gfx::Point* point, int device_scale_factor);
91 void ConvertPointToPixels(gfx::Point* point, int device_scale_factor);
98 gfx::Point* point,
106 gfx::Point* point,
111 bool ConvertPointToWindow(views::View* view, gfx::Point* point);
115 bool ConvertPointFromWindow(views::View* view, gfx::Point* point);
118 gfx::NativeWindow GetNativeWindow(views::Widget* widget);
[all …]
Dview_util.cc196 display::Display GetDisplayNearestPoint(const gfx::Point& point, in GetDisplayNearestPoint()
198 gfx::Point find_point = point; in GetDisplayNearestPoint()
201 find_point = gfx::ToFlooredPoint( in GetDisplayNearestPoint()
202 display::win::ScreenWin::ScreenToDIPPoint(gfx::PointF(point))); in GetDisplayNearestPoint()
208 display::Display GetDisplayMatchingBounds(const gfx::Rect& bounds, in GetDisplayMatchingBounds()
210 gfx::Rect find_bounds = bounds; in GetDisplayMatchingBounds()
220 void ConvertPointFromPixels(gfx::Point* point, int device_scale_factor) { in ConvertPointFromPixels()
221 *point = gfx::ToFlooredPoint( in ConvertPointFromPixels()
222 gfx::ScalePoint(gfx::PointF(*point), 1.0f / device_scale_factor)); in ConvertPointFromPixels()
225 void ConvertPointToPixels(gfx::Point* point, int device_scale_factor) { in ConvertPointToPixels()
[all …]
Dwindow_view.cc67 gfx::Rect GetWindowBoundsForClientBounds( in GetWindowBoundsForClientBounds()
68 const gfx::Rect& client_bounds) const override { in GetWindowBoundsForClientBounds()
73 gfx::Rect pixel_bounds = in GetWindowBoundsForClientBounds()
87 int NonClientHitTest(const gfx::Point& point) override { in NonClientHitTest()
123 gfx::Rect GetBoundsForClientView() const override { in GetBoundsForClientView()
127 gfx::Rect GetWindowBoundsForClientBounds( in GetWindowBoundsForClientBounds()
128 const gfx::Rect& client_bounds) const override { in GetWindowBoundsForClientBounds()
132 int NonClientHitTest(const gfx::Point& point) override { in NonClientHitTest()
149 point, gfx::Insets(resize_border_thickness, resize_border_thickness), in NonClientHitTest()
167 void GetWindowMask(const gfx::Size& size, SkPath* window_mask) override { in GetWindowMask()
[all …]
Dview_view.h72 gfx::Size CalculatePreferredSize() const override;
73 gfx::Size GetMinimumSize() const override;
74 gfx::Size GetMaximumSize() const override;
98 CEF_VIEW_VIEW_T gfx::Size CEF_VIEW_VIEW_D::CalculatePreferredSize() const { in CalculatePreferredSize()
99 gfx::Size result; in CalculatePreferredSize()
103 result = gfx::Size(cef_size.width, cef_size.height); in CalculatePreferredSize()
116 CEF_VIEW_VIEW_T gfx::Size CEF_VIEW_VIEW_D::GetMinimumSize() const { in GetMinimumSize()
117 gfx::Size result; in GetMinimumSize()
121 result = gfx::Size(cef_size.width, cef_size.height); in GetMinimumSize()
131 CEF_VIEW_VIEW_T gfx::Size CEF_VIEW_VIEW_D::GetMaximumSize() const { in GetMaximumSize()
[all …]
Dview_impl.h538 gfx::Rect(bounds.x, bounds.y, bounds.width, bounds.height)); in SetBounds()
543 const gfx::Rect& bounds = root_view()->bounds(); in GetBounds()
549 const gfx::Rect& bounds = root_view()->GetBoundsInScreen(); in GetBoundsInScreen()
555 root_view()->SetSize(gfx::Size(size.width, size.height)); in SetSize()
567 root_view()->SetPosition(gfx::Point(position.x, position.y)); in SetPosition()
579 gfx::Insets gfx_insets(insets.top, insets.left, insets.bottom, insets.right); in SetInsets()
593 const gfx::Size& size = root_view()->GetPreferredSize(); in GetPreferredSize()
604 const gfx::Size& size = root_view()->GetMinimumSize(); in GetMinimumSize()
610 const gfx::Size& size = root_view()->GetMaximumSize(); in GetMaximumSize()
682 gfx::Point gfx_point = gfx::Point(point.x, point.y); in ConvertPointToScreen()
[all …]
Doverlay_view_host.cc68 gfx::Rect(bounds.x, bounds.y, bounds.width, bounds.height)); in SetBounds()
93 gfx::Rect(origin, gfx::Size(size.width, size.height))); in SetSize()
107 gfx::Rect(gfx::Point(position.x, position.y), size)); in SetPosition()
135 host_->SetOverlayBounds(gfx::Rect(origin, preferred_size)); in SizeToPreferredSize()
223 gfx::Rect bounds; in Init()
231 bounds = gfx::Rect(gfx::Point(), view_->size()); in Init()
264 void CefOverlayViewHost::SetOverlayBounds(const gfx::Rect& bounds) { in SetOverlayBounds()
269 gfx::Rect new_bounds = bounds; in SetOverlayBounds()
299 gfx::Rect CefOverlayViewHost::ComputeBounds() const { in ComputeBounds()
332 return gfx::Rect(x, y, prefsize.width(), prefsize.height()); in ComputeBounds()
Dbrowser_platform_delegate_views.h57 gfx::Point GetScreenPoint(const gfx::Point& view) const override;
68 gfx::Point GetDialogPosition(const gfx::Size& size) override;
69 gfx::Size GetMaximumDialogSize() override;
73 gfx::Point GetParentScreenPoint(const gfx::Point& view) const override;
/third_party/cef/libcef/browser/native/
Dbrowser_platform_delegate_native_linux.cc56 gfx::Rect rect(window_info_.bounds.x, window_info_.bounds.y, in CreateHostWindow()
84 delegate_view->Init(static_cast<gfx::AcceleratedWidget>(window_info_.window), in CreateHostWindow()
85 web_contents_, gfx::Rect(gfx::Point(), rect.size())); in CreateHostWindow()
104 static const gfx::FontRenderParams params( in CreateHostWindow()
105 gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr)); in CreateHostWindow()
173 const gfx::Rect& bounds = window_x11_->GetBoundsInScreen(); in NotifyMoveOrResizeStarted()
188 gfx::Rect(window_x11_->bounds().origin(), gfx::Size(width, height))); in SizeTo()
193 gfx::Point CefBrowserPlatformDelegateNativeLinux::GetScreenPoint( in GetScreenPoint()
194 const gfx::Point& view) const { in GetScreenPoint()
205 const gfx::Rect& bounds_in_screen = window_x11_->GetBoundsInScreen(); in GetScreenPoint()
[all …]
Dbrowser_platform_delegate_native_win.cc148 gfx::Point((cr.right - cr.left) / 2, (cr.bottom - cr.top) / 2)) in GetWindowScaleFactor()
213 gfx::Point point = gfx::Point(cr.right, cr.bottom); in CreateHostWindow()
216 gfx::ToFlooredPoint(gfx::ScalePoint(gfx::PointF(point), 1.0f / scale)); in CreateHostWindow()
228 gfx::Rect(0, 0, point.x(), point.y())); in CreateHostWindow()
355 gfx::Point CefBrowserPlatformDelegateNativeWin::GetScreenPoint( in GetScreenPoint()
356 const gfx::Point& view) const { in GetScreenPoint()
365 const gfx::Point& device_pt = in GetScreenPoint()
366 gfx::ToFlooredPoint(gfx::ScalePoint(gfx::PointF(view), scale)); in GetScreenPoint()
372 return gfx::Point(screen_pt.x, screen_pt.y); in GetScreenPoint()
451 gfx::Point CefBrowserPlatformDelegateNativeWin::GetDialogPosition( in GetDialogPosition()
[all …]
Dbrowser_platform_delegate_native_aura.cc112 gfx::PointF location(mouse_event.x, mouse_event.y); in TranslateUiClickEvent()
113 gfx::PointF root_location( in TranslateUiClickEvent()
114 GetScreenPoint(gfx::Point(mouse_event.x, mouse_event.y))); in TranslateUiClickEvent()
144 gfx::PointF location(mouse_event.x, mouse_event.y); in TranslateUiMoveEvent()
145 gfx::PointF root_location( in TranslateUiMoveEvent()
146 GetScreenPoint(gfx::Point(mouse_event.x, mouse_event.y))); in TranslateUiMoveEvent()
163 gfx::Vector2d offset(GetUiWheelEventOffset(deltaX, deltaY)); in TranslateUiWheelEvent()
166 gfx::PointF location(mouse_event.x, mouse_event.y); in TranslateUiWheelEvent()
167 gfx::PointF root_location( in TranslateUiWheelEvent()
168 GetScreenPoint(gfx::Point(mouse_event.x, mouse_event.y))); in TranslateUiWheelEvent()
[all …]
Dbrowser_platform_delegate_native_win.h28 gfx::Point GetScreenPoint(const gfx::Point& view) const override;
38 gfx::Point GetDialogPosition(const gfx::Size& size) override;
39 gfx::Size GetMaximumDialogSize() override;
43 gfx::Vector2d GetUiWheelEventOffset(int deltaX, int deltaY) const override;
/third_party/cef/libcef/browser/
Dimage_impl.cc51 return gfx::PNGCodec::Encode( in PNGMethod()
53 bitmap.colorType() == kBGRA_8888_SkColorType ? gfx::PNGCodec::FORMAT_BGRA in PNGMethod()
54 : gfx::PNGCodec::FORMAT_RGBA, in PNGMethod()
55 gfx::Size(bitmap.width(), bitmap.height()), in PNGMethod()
58 std::vector<gfx::PNGCodec::Comment>(), compressed); in PNGMethod()
66 return gfx::JPEGCodec::Encode(bitmap, quality, compressed); in JPEGMethod()
76 CefImageImpl::CefImageImpl(const gfx::ImageSkia& image_skia) in CefImageImpl()
130 if (!gfx::PNGCodec::Decode(static_cast<const unsigned char*>(png_data), in AddPNG()
141 std::unique_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode( in AddJPEG()
166 gfx::ImageSkia image_skia = image_.AsImageSkia(); in RemoveRepresentation()
[all …]
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dplatform_view.cc25 inline fuchsia::ui::gfx::vec3 Add(const fuchsia::ui::gfx::vec3& a, in Add()
26 const fuchsia::ui::gfx::vec3& b) { in Add()
30 inline fuchsia::ui::gfx::vec3 Subtract(const fuchsia::ui::gfx::vec3& a, in Subtract()
31 const fuchsia::ui::gfx::vec3& b) { in Subtract()
35 inline fuchsia::ui::gfx::BoundingBox InsetBy( in InsetBy()
36 const fuchsia::ui::gfx::BoundingBox& box, in InsetBy()
37 const fuchsia::ui::gfx::vec3& inset_from_min, in InsetBy()
38 const fuchsia::ui::gfx::vec3& inset_from_max) { in InsetBy()
43 inline fuchsia::ui::gfx::BoundingBox ViewPropertiesLayoutBox( in ViewPropertiesLayoutBox()
44 const fuchsia::ui::gfx::ViewProperties& view_properties) { in ViewPropertiesLayoutBox()
[all …]
/third_party/flutter/engine/flutter/flow/
Dview_holder.cc17 fuchsia::ui::gfx::ViewProperties ToViewProperties(float width, in ToViewProperties()
24 return fuchsia::ui::gfx::ViewProperties({ in ToViewProperties()
25 .bounding_box = fuchsia::ui::gfx::BoundingBox({ in ToViewProperties()
26 .min = fuchsia::ui::gfx::vec3({ in ToViewProperties()
31 .max = fuchsia::ui::gfx::vec3({.x = width, .y = height, .z = 0.f}), in ToViewProperties()
33 .inset_from_min = fuchsia::ui::gfx::vec3({ in ToViewProperties()
38 .inset_from_max = fuchsia::ui::gfx::vec3({ in ToViewProperties()
128 hit_testable ? fuchsia::ui::gfx::HitTestBehavior::kDefault in UpdateScene()
129 : fuchsia::ui::gfx::HitTestBehavior::kSuppress); in UpdateScene()
/third_party/cef/libcef/browser/chrome/
Dbrowser_platform_delegate_chrome.cc72 gfx::Point CefBrowserPlatformDelegateChrome::GetScreenPoint( in GetScreenPoint()
73 const gfx::Point& view) const { in GetScreenPoint()
76 gfx::NativeWindow native_window = in GetScreenPoint()
81 native_window, gfx::Rect(view, gfx::Size(0, 0))); in GetScreenPoint()
99 gfx::Point CefBrowserPlatformDelegateChrome::GetParentScreenPoint( in GetParentScreenPoint()
100 const gfx::Point& view) const { in GetParentScreenPoint()
/third_party/cef/patch/patches/
Dviews_1749_2102.patch7 #include "ui/gfx/native_widget_types.h"
11 namespace gfx {
23 + virtual void MouseOutsideMenu(const gfx::Point& screen_point) {}
45 diff --git ui/gfx/render_text.cc ui/gfx/render_text.cc
47 --- ui/gfx/render_text.cc
48 +++ ui/gfx/render_text.cc
74 + gfx::LocateAndRemoveAcceleratorChar(layout_text_, &char_pos, &char_span);
76 + gfx::Range range(char_pos, char_pos + char_span);
84 diff --git ui/gfx/render_text.h ui/gfx/render_text.h
86 --- ui/gfx/render_text.h
[all …]

123456789