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

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 139173004: [#3] Pass gfx structs by const ref (gfx::SizeF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT and fixed build error for Android platform! 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2470 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE { 2470 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE {
2471 return getter_return_value_; 2471 return getter_return_value_;
2472 } 2472 }
2473 2473
2474 virtual bool IsExternalFlingActive() const OVERRIDE { return false; } 2474 virtual bool IsExternalFlingActive() const OVERRIDE { return false; }
2475 2475
2476 virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE { 2476 virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE {
2477 page_scale_factor_ = page_scale_factor; 2477 page_scale_factor_ = page_scale_factor;
2478 } 2478 }
2479 2479
2480 virtual void SetScrollableSize(gfx::SizeF scrollable_size) OVERRIDE { 2480 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE {
2481 scrollable_size_ = scrollable_size; 2481 scrollable_size_ = scrollable_size;
2482 } 2482 }
2483 2483
2484 gfx::Vector2dF last_set_scroll_offset() { 2484 gfx::Vector2dF last_set_scroll_offset() {
2485 return last_set_scroll_offset_; 2485 return last_set_scroll_offset_;
2486 } 2486 }
2487 2487
2488 void set_getter_return_value(gfx::Vector2dF value) { 2488 void set_getter_return_value(gfx::Vector2dF value) {
2489 getter_return_value_ = value; 2489 getter_return_value_ = value;
2490 } 2490 }
(...skipping 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after
5435 &set_needs_redraw_count)); 5435 &set_needs_redraw_count));
5436 // Empty damage rect won't signal the monitor. 5436 // Empty damage rect won't signal the monitor.
5437 host_impl_->SetNeedsRedrawRect(gfx::Rect()); 5437 host_impl_->SetNeedsRedrawRect(gfx::Rect());
5438 EXPECT_EQ(0, set_needs_commit_count); 5438 EXPECT_EQ(0, set_needs_commit_count);
5439 EXPECT_EQ(2, set_needs_redraw_count); 5439 EXPECT_EQ(2, set_needs_redraw_count);
5440 } 5440 }
5441 } 5441 }
5442 5442
5443 } // namespace 5443 } // namespace
5444 } // namespace cc 5444 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | content/browser/android/in_process/synchronous_compositor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698