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

Unified Diff: cc/resources/texture_uploader.h

Issue 1115653002: Pass gfx structs by const ref(gfx::Vector2D/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing some build issue Created 5 years, 8 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/layer_impl.h ('k') | cc/resources/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_uploader.h
diff --git a/cc/resources/texture_uploader.h b/cc/resources/texture_uploader.h
index 72c46e7ffb5dc4013151941bb3aa2cebc83549f9..ae834083e72b341f124935907fdce82e61f34e3f 100644
--- a/cc/resources/texture_uploader.h
+++ b/cc/resources/texture_uploader.h
@@ -45,7 +45,7 @@ class CC_EXPORT TextureUploader {
void Upload(const uint8* image,
const gfx::Rect& content_rect,
const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Vector2d& dest_offset,
ResourceFormat format,
const gfx::Size& size);
@@ -90,12 +90,12 @@ class CC_EXPORT TextureUploader {
void UploadWithTexSubImage(const uint8* image,
const gfx::Rect& image_rect,
const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Vector2d& dest_offset,
ResourceFormat format);
void UploadWithMapTexSubImage(const uint8* image,
const gfx::Rect& image_rect,
const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Vector2d& dest_offset,
ResourceFormat format);
void UploadWithTexImageETC1(const uint8* image, const gfx::Size& size);
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/resources/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698