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

Unified Diff: cc/trees/layer_tree_host_unittest_delegated.cc

Issue 126973002: Decouple cc::FakeWebGraphicsContext3D from blink::WGC3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_delegated.cc
diff --git a/cc/trees/layer_tree_host_unittest_delegated.cc b/cc/trees/layer_tree_host_unittest_delegated.cc
index a45d01c3a9cf672604b49385ce550d24338daeb8..22e536e59c5188eab2c958ad6929d595698c3e34 100644
--- a/cc/trees/layer_tree_host_unittest_delegated.cc
+++ b/cc/trees/layer_tree_host_unittest_delegated.cc
@@ -333,8 +333,8 @@ class LayerTreeHostDelegatedTestCreateChildId
FakeDelegatedRendererLayerImpl* delegated_impl =
static_cast<FakeDelegatedRendererLayerImpl*>(root_impl->children()[0]);
- ContextProvider* context_provider =
- host_impl->output_surface()->context_provider();
+ TestContextProvider* context_provider = static_cast<TestContextProvider*>(
+ host_impl->output_surface()->context_provider().get());
++num_activates_;
switch (num_activates_) {
@@ -342,7 +342,7 @@ class LayerTreeHostDelegatedTestCreateChildId
EXPECT_TRUE(delegated_impl->ChildId());
EXPECT_FALSE(did_reset_child_id_);
- context_provider->Context3d()->loseContextCHROMIUM(
+ context_provider->TestContext3d()->loseContextCHROMIUM(
GL_GUILTY_CONTEXT_RESET_ARB,
GL_INNOCENT_CONTEXT_RESET_ARB);
break;
@@ -413,13 +413,13 @@ class LayerTreeHostDelegatedTestInvalidFrameAfterContextLost
if (host_impl->active_tree()->source_frame_number() < 1)
return;
- ContextProvider* context_provider =
- host_impl->output_surface()->context_provider();
+ TestContextProvider* context_provider = static_cast<TestContextProvider*>(
+ host_impl->output_surface()->context_provider().get());
++num_activates_;
switch (num_activates_) {
case 2:
- context_provider->Context3d()->loseContextCHROMIUM(
+ context_provider->TestContext3d()->loseContextCHROMIUM(
GL_GUILTY_CONTEXT_RESET_ARB,
GL_INNOCENT_CONTEXT_RESET_ARB);
break;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698