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

Side by Side Diff: cc/test/layer_test_common.h

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayerTreeHostClientTakeAwayOutputSurface test. Content provider is always destroyed on the clie… Created 5 years, 3 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.cc ('k') | cc/test/layer_test_common.cc » ('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 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_
6 #define CC_TEST_LAYER_TEST_COMMON_H_ 6 #define CC_TEST_LAYER_TEST_COMMON_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/render_pass.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 LayerImpl* root_layer() const { return root_layer_impl_.get(); } 133 LayerImpl* root_layer() const { return root_layer_impl_.get(); }
134 FakeLayerTreeHost* host() { return host_.get(); } 134 FakeLayerTreeHost* host() { return host_.get(); }
135 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); } 135 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); }
136 Proxy* proxy() const { return host_->host_impl()->proxy(); } 136 Proxy* proxy() const { return host_->host_impl()->proxy(); }
137 const QuadList& quad_list() const { return render_pass_->quad_list; } 137 const QuadList& quad_list() const { return render_pass_->quad_list; }
138 138
139 private: 139 private:
140 FakeLayerTreeHostClient client_; 140 FakeLayerTreeHostClient client_;
141 TestTaskGraphRunner task_graph_runner_; 141 TestTaskGraphRunner task_graph_runner_;
142 scoped_ptr<OutputSurface> output_surface_;
142 scoped_ptr<FakeLayerTreeHost> host_; 143 scoped_ptr<FakeLayerTreeHost> host_;
143 scoped_ptr<LayerImpl> root_layer_impl_; 144 scoped_ptr<LayerImpl> root_layer_impl_;
144 scoped_ptr<RenderPass> render_pass_; 145 scoped_ptr<RenderPass> render_pass_;
145 int layer_impl_id_; 146 int layer_impl_id_;
146 }; 147 };
147 }; 148 };
148 149
149 } // namespace cc 150 } // namespace cc
150 151
151 #endif // CC_TEST_LAYER_TEST_COMMON_H_ 152 #endif // CC_TEST_LAYER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698