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

Side by Side Diff: cc/test/fake_proxy.cc

Issue 279013002: Remove CompositeAndReadback from LayerTreeHost(Impl) and the Proxys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-cnr-lth-proxy-renderer: rebase-on-drawresult Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/layer_tree_test.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, const gfx::Rect& rect) {
14 return true;
15 }
16
17 bool FakeProxy::IsStarted() const { return true; } 13 bool FakeProxy::IsStarted() const { return true; }
18 14
19 void FakeProxy::CreateAndInitializeOutputSurface() { 15 void FakeProxy::CreateAndInitializeOutputSurface() {
20 DCHECK(layer_tree_host_); 16 DCHECK(layer_tree_host_);
21 layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(true); 17 layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(true);
22 } 18 }
23 19
24 const RendererCapabilities& FakeProxy::GetRendererCapabilities() const { 20 const RendererCapabilities& FakeProxy::GetRendererCapabilities() const {
25 return capabilities_; 21 return capabilities_;
26 } 22 }
(...skipping 15 matching lines...) Expand all
42 } 38 }
43 39
44 bool FakeProxy::CommitPendingForTesting() { return false; } 40 bool FakeProxy::CommitPendingForTesting() { return false; }
45 41
46 scoped_ptr<base::Value> FakeProxy::AsValue() const { 42 scoped_ptr<base::Value> FakeProxy::AsValue() const {
47 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 43 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
48 return state.PassAs<base::Value>(); 44 return state.PassAs<base::Value>();
49 } 45 }
50 46
51 } // namespace cc 47 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698