Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: cc/layers/delegated_renderer_layer_impl.h

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/delegated_renderer_layer.cc ('k') | cc/layers/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/delegated_renderer_layer_impl.h
diff --git a/cc/layers/delegated_renderer_layer_impl.h b/cc/layers/delegated_renderer_layer_impl.h
index a82a1f7c65f2a3b05b5ec20ab81d68da94723c24..e71fce842fbe122ec8e3fc5e658e4a6d2a5a4c9b 100644
--- a/cc/layers/delegated_renderer_layer_impl.h
+++ b/cc/layers/delegated_renderer_layer_impl.h
@@ -48,7 +48,7 @@ class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
void SetFrameData(const DelegatedFrameData* frame_data,
const gfx::RectF& damage_in_frame);
- void SetDisplaySize(gfx::Size size);
+ void SetDisplaySize(const gfx::Size& size);
protected:
DelegatedRendererLayerImpl(LayerTreeImpl* tree_impl, int id);
@@ -77,14 +77,14 @@ class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
RenderPass::Id delegated_render_pass_id,
RenderPass::Id* output_render_pass_id) const;
- gfx::Transform DelegatedFrameToLayerSpaceTransform(gfx::Size frame_size)
- const;
+ gfx::Transform DelegatedFrameToLayerSpaceTransform(
+ const gfx::Size& frame_size) const;
void AppendRenderPassQuads(
QuadSink* quad_sink,
AppendQuadsData* append_quads_data,
const RenderPass* delegated_render_pass,
- gfx::Size frame_size) const;
+ const gfx::Size& frame_size) const;
// LayerImpl overrides.
virtual const char* LayerTypeAsString() const OVERRIDE;
« no previous file with comments | « cc/layers/delegated_renderer_layer.cc ('k') | cc/layers/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698