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

Unified Diff: cc/resources/video_resource_updater.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 to TOT and fixed build errors on other 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/tile_manager_unittest.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.h
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
index 2a27739cef796ab5a3d90f87bf9a1202bb895edc..11ad2d0beae1d62fcd6acd1086a421fef6122bb9 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -80,7 +80,7 @@ class CC_EXPORT VideoResourceUpdater
gpu::Mailbox mailbox;
PlaneResource(unsigned resource_id,
- gfx::Size resource_size,
+ const gfx::Size& resource_size,
ResourceFormat resource_format,
gpu::Mailbox mailbox)
: resource_id(resource_id),
@@ -98,7 +98,7 @@ class CC_EXPORT VideoResourceUpdater
struct RecycleResourceData {
unsigned resource_id;
- gfx::Size resource_size;
+ const gfx::Size& resource_size;
Adam Rice 2014/01/28 09:41:31 This object gets stored inside a base::Callback. W
r.kasibhatla 2014/01/28 09:55:00 Aah. Missed one in review. Sorry about that.
prashant.n 2014/01/28 10:33:40 Oops. Sorry for the change. Will put new patch.
ResourceFormat resource_format;
gpu::Mailbox mailbox;
};
« no previous file with comments | « cc/resources/tile_manager_unittest.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698