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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index 297a0925adf925f203355b1e1a86c7a9c3545233..b35e437bd3a955467c2ffe1ca9df32403470c54c 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -176,7 +176,9 @@ int OcclusionTrackerTestImplThreadTypes::next_layer_impl_id = 1;
template <typename Types> class OcclusionTrackerTest : public testing::Test {
protected:
explicit OcclusionTrackerTest(bool opaque_layers)
- : opaque_layers_(opaque_layers), host_(FakeLayerTreeHost::Create()) {}
+ : opaque_layers_(opaque_layers),
+ client_(FakeLayerTreeHostClient::DIRECT_3D),
+ host_(FakeLayerTreeHost::Create(&client_)) {}
virtual void RunMyTest() = 0;
@@ -441,6 +443,7 @@ template <typename Types> class OcclusionTrackerTest : public testing::Test {
}
bool opaque_layers_;
+ FakeLayerTreeHostClient client_;
scoped_ptr<FakeLayerTreeHost> host_;
// These hold ownership of the layers for the duration of the test.
typename Types::LayerPtrType root_;

Powered by Google App Engine
This is Rietveld 408576698