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

Unified Diff: cc/test/test_context_support.cc

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux 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/test/test_context_support.h ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_support.cc
diff --git a/cc/test/test_context_support.cc b/cc/test/test_context_support.cc
index 9558042b56081cf2442d5c8ae40861144c5735e9..3c2e31a819171b7f30215cf3043beec584c1b619 100644
--- a/cc/test/test_context_support.cc
+++ b/cc/test/test_context_support.cc
@@ -63,7 +63,7 @@ void TestContextSupport::Swap() {
weak_ptr_factory_.GetWeakPtr()));
}
-void TestContextSupport::PartialSwapBuffers(gfx::Rect sub_buffer) {
+void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
last_swap_type_ = PARTIAL_SWAP;
last_partial_swap_rect_ = sub_buffer;
base::MessageLoop::current()->PostTask(
« no previous file with comments | « cc/test/test_context_support.h ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698