Index: cc/resources/texture_uploader.cc |
diff --git a/cc/resources/texture_uploader.cc b/cc/resources/texture_uploader.cc |
index 601fa8fbff89de41c26075cf1be5d97dff61fdd3..89271bdcb541e3b0643b09b6dd117221a6cb24c7 100644 |
--- a/cc/resources/texture_uploader.cc |
+++ b/cc/resources/texture_uploader.cc |
@@ -136,7 +136,7 @@ void TextureUploader::EndQuery() { |
void TextureUploader::Upload(const uint8* image, |
const gfx::Rect& image_rect, |
const gfx::Rect& source_rect, |
- gfx::Vector2d dest_offset, |
+ const gfx::Vector2d& dest_offset, |
ResourceFormat format, |
const gfx::Size& size) { |
CHECK(image_rect.Contains(source_rect)); |
@@ -173,7 +173,7 @@ void TextureUploader::ReleaseCachedQueries() { |
void TextureUploader::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) { |
TRACE_EVENT0("cc", "TextureUploader::UploadWithTexSubImage"); |
@@ -227,7 +227,7 @@ void TextureUploader::UploadWithTexSubImage(const uint8* image, |
void TextureUploader::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) { |
TRACE_EVENT0("cc", "TextureUploader::UploadWithMapTexSubImage"); |