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

Side by Side Diff: cc/test/fake_proxy.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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/fake_scrollbar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/test/fake_proxy.h" 5 #include "cc/test/fake_proxy.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 void FakeProxy::SetLayerTreeHost(LayerTreeHost* host) { 9 void FakeProxy::SetLayerTreeHost(LayerTreeHost* host) {
10 layer_tree_host_ = host; 10 layer_tree_host_ = host;
11 } 11 }
12 12
13 bool FakeProxy::CompositeAndReadback(void* pixels, gfx::Rect rect) { 13 bool FakeProxy::CompositeAndReadback(void* pixels, const gfx::Rect& rect) {
14 return true; 14 return true;
15 } 15 }
16 16
17 bool FakeProxy::IsStarted() const { return true; } 17 bool FakeProxy::IsStarted() const { return true; }
18 18
19 void FakeProxy::CreateAndInitializeOutputSurface() { 19 void FakeProxy::CreateAndInitializeOutputSurface() {
20 DCHECK(layer_tree_host_); 20 DCHECK(layer_tree_host_);
21 layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(true); 21 layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(true);
22 } 22 }
23 23
(...skipping 18 matching lines...) Expand all
42 } 42 }
43 43
44 bool FakeProxy::CommitPendingForTesting() { return false; } 44 bool FakeProxy::CommitPendingForTesting() { return false; }
45 45
46 scoped_ptr<base::Value> FakeProxy::AsValue() const { 46 scoped_ptr<base::Value> FakeProxy::AsValue() const {
47 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 47 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
48 return state.PassAs<base::Value>(); 48 return state.PassAs<base::Value>();
49 } 49 }
50 50
51 } // namespace cc 51 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/fake_scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698