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

Unified Diff: cc/scheduler/texture_uploader.h

Issue 147603006: [#7] Resubmitted - Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resubmit 145313006 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/video_resource_updater.cc ('k') | cc/scheduler/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/texture_uploader.h
diff --git a/cc/scheduler/texture_uploader.h b/cc/scheduler/texture_uploader.h
index 362f00199da8244f550f629296de90f63cdf1108..709cb3169f14f00d46057f2b7399ff6b815b4049 100644
--- a/cc/scheduler/texture_uploader.h
+++ b/cc/scheduler/texture_uploader.h
@@ -47,7 +47,7 @@ class CC_EXPORT TextureUploader {
const gfx::Rect& source_rect,
gfx::Vector2d dest_offset,
ResourceFormat format,
- gfx::Size size);
+ const gfx::Size& size);
void Flush();
void ReleaseCachedQueries();
@@ -101,7 +101,7 @@ class CC_EXPORT TextureUploader {
const gfx::Rect& source_rect,
gfx::Vector2d dest_offset,
ResourceFormat format);
- void UploadWithTexImageETC1(const uint8* image, gfx::Size size);
+ void UploadWithTexImageETC1(const uint8* image, const gfx::Size& size);
gpu::gles2::GLES2Interface* gl_;
ScopedPtrDeque<Query> pending_queries_;
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | cc/scheduler/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698