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

Unified Diff: cc/resources/bitmap_content_layer_updater.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! 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/quads/yuv_video_draw_quad.cc ('k') | cc/resources/bitmap_content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/bitmap_content_layer_updater.h
diff --git a/cc/resources/bitmap_content_layer_updater.h b/cc/resources/bitmap_content_layer_updater.h
index f618655bbfcb3224f14e3e1d8b2c96d1cb89d10e..d4909fa6f404ba74aa89773f2f0e167ee3d994b1 100644
--- a/cc/resources/bitmap_content_layer_updater.h
+++ b/cc/resources/bitmap_content_layer_updater.h
@@ -30,7 +30,7 @@ class CC_EXPORT BitmapContentLayerUpdater : public ContentLayerUpdater {
virtual ~Resource();
virtual void Update(ResourceUpdateQueue* queue,
- gfx::Rect source_rect,
+ const gfx::Rect& source_rect,
gfx::Vector2d dest_offset,
bool partial_update) OVERRIDE;
@@ -47,14 +47,14 @@ class CC_EXPORT BitmapContentLayerUpdater : public ContentLayerUpdater {
virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
PrioritizedResourceManager* manager) OVERRIDE;
- virtual void PrepareToUpdate(gfx::Rect content_rect,
+ virtual void PrepareToUpdate(const gfx::Rect& content_rect,
gfx::Size tile_size,
float contents_width_scale,
float contents_height_scale,
gfx::Rect* resulting_opaque_rect) OVERRIDE;
void UpdateTexture(ResourceUpdateQueue* queue,
PrioritizedResource* resource,
- gfx::Rect source_rect,
+ const gfx::Rect& source_rect,
gfx::Vector2d dest_offset,
bool partial_update);
virtual void SetOpaque(bool opaque) OVERRIDE;
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/resources/bitmap_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698