summaryrefslogtreecommitdiffstats
path: root/cc/output/renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/output/renderer.h')
-rw-r--r--cc/output/renderer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/output/renderer.h b/cc/output/renderer.h
index 147b535f..412f8d1 100644
--- a/cc/output/renderer.h
+++ b/cc/output/renderer.h
@@ -41,8 +41,8 @@ class CC_EXPORT Renderer {
virtual void DrawFrame(RenderPassList* render_passes_in_draw_order,
ContextProvider* offscreen_context_provider,
float device_scale_factor,
- gfx::Rect device_viewport_rect,
- gfx::Rect device_clip_rect,
+ const gfx::Rect& device_viewport_rect,
+ const gfx::Rect& device_clip_rect,
bool allow_partial_swap,
bool disable_picture_quad_image_filtering) = 0;
@@ -55,7 +55,7 @@ class CC_EXPORT Renderer {
virtual void SwapBuffers(const CompositorFrameMetadata& metadata) = 0;
virtual void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {}
- virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0;
+ virtual void GetFramebufferPixels(void* pixels, const gfx::Rect& rect) = 0;
virtual bool IsContextLost();