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

Unified Diff: cc/resources/resource_provider.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/resources/raster_worker_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 6e5c61a2bfa72a52c06282de8699cc4cd2a1e8e6..22ce8a855b161ab37ef0a3f9d9fcb91642e56cfd 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -135,8 +135,8 @@ class CC_EXPORT ResourceProvider {
// the resource).
void SetPixels(ResourceId id,
const uint8_t* image,
- gfx::Rect image_rect,
- gfx::Rect source_rect,
+ const gfx::Rect& image_rect,
+ const gfx::Rect& source_rect,
gfx::Vector2d dest_offset);
// Check upload status.
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698