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

Unified Diff: content/browser/android/in_process/synchronous_compositor_output_surface.cc

Issue 142863008: Revert of [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/browser/android/in_process/synchronous_compositor_output_surface.cc
diff --git a/content/browser/android/in_process/synchronous_compositor_output_surface.cc b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
index 3f7e5a2d4a950bf8efd9627b21c4d316297ab25b..2058fd18a1881eaed54e9f005cf554cf83211b25 100644
--- a/content/browser/android/in_process/synchronous_compositor_output_surface.cc
+++ b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
@@ -75,7 +75,7 @@
null_device_(SkBitmap::kARGB_8888_Config, 1, 1),
null_canvas_(&null_device_) {
}
- virtual void Resize(const gfx::Size& size) OVERRIDE {
+ virtual void Resize(gfx::Size size) OVERRIDE {
// Intentional no-op: canvas size is controlled by the embedder.
}
virtual SkCanvas* BeginPaint(const gfx::Rect& damage_rect) OVERRIDE {
@@ -156,7 +156,7 @@
}
void SynchronousCompositorOutputSurface::Reshape(
- const gfx::Size& size, float scale_factor) {
+ gfx::Size size, float scale_factor) {
// Intentional no-op: surface size is controlled by the embedder.
}

Powered by Google App Engine
This is Rietveld 408576698