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

Unified Diff: cc/layer_tree_host_unittest.cc

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/layer_tree_host_impl_unittest.cc ('k') | cc/nine_patch_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_unittest.cc
===================================================================
--- cc/layer_tree_host_unittest.cc (revision 171405)
+++ cc/layer_tree_host_unittest.cc (working copy)
@@ -7,8 +7,8 @@
#include "base/synchronization/lock.h"
#include "cc/content_layer.h"
#include "cc/content_layer_client.h"
+#include "cc/graphics_context.h"
#include "cc/layer_tree_host_impl.h"
-#include "cc/output_surface.h"
#include "cc/single_thread_proxy.h"
#include "cc/test/fake_content_layer_client.h"
#include "cc/test/fake_layer_tree_host_client.h"
@@ -1401,7 +1401,7 @@
virtual void commitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE
{
- CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->outputSurface()->context3D());
+ CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->context()->context3D());
switch (impl->sourceFrameNumber()) {
case 0:
@@ -1435,7 +1435,7 @@
virtual void drawLayersOnThread(LayerTreeHostImpl* impl) OVERRIDE
{
- CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->outputSurface()->context3D());
+ CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->context()->context3D());
// Number of textures used for draw should always be one.
EXPECT_EQ(1, context->numUsedTextures());
@@ -1505,7 +1505,7 @@
virtual void commitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE
{
- CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->outputSurface()->context3D());
+ CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->context()->context3D());
switch (impl->sourceFrameNumber()) {
case 0:
@@ -1557,7 +1557,7 @@
virtual void drawLayersOnThread(LayerTreeHostImpl* impl) OVERRIDE
{
- CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->outputSurface()->context3D());
+ CompositorFakeWebGraphicsContext3DWithTextureTracking* context = static_cast<CompositorFakeWebGraphicsContext3DWithTextureTracking*>(impl->context()->context3D());
// Number of textures used for drawing should two except for frame 4
// where the viewport only contains one layer.
@@ -1958,7 +1958,7 @@
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestManySurfaces)
-// A loseOutputSurface(1) should lead to a didRecreateOutputSurface(true)
+// A loseContext(1) should lead to a didRecreateOutputSurface(true)
class LayerTreeHostTestSetSingleLostContext : public LayerTreeHostTest {
public:
LayerTreeHostTestSetSingleLostContext()
@@ -1972,7 +1972,7 @@
virtual void didCommitAndDrawFrame() OVERRIDE
{
- m_layerTreeHost->loseOutputSurface(1);
+ m_layerTreeHost->loseContext(1);
}
virtual void didRecreateOutputSurface(bool succeeded) OVERRIDE
@@ -1991,7 +1991,7 @@
runTest(true);
}
-// A loseOutputSurface(10) should lead to a didRecreateOutputSurface(false), and
+// A loseContext(10) should lead to a didRecreateOutputSurface(false), and
// a finishAllRendering() should not hang.
class LayerTreeHostTestSetRepeatedLostContext : public LayerTreeHostTest {
public:
@@ -2006,7 +2006,7 @@
virtual void didCommitAndDrawFrame() OVERRIDE
{
- m_layerTreeHost->loseOutputSurface(10);
+ m_layerTreeHost->loseContext(10);
}
virtual void didRecreateOutputSurface(bool succeeded) OVERRIDE
@@ -2880,7 +2880,7 @@
EXPECT_TRUE(m_layer->haveBackingTexture());
m_layerTreeHost->setVisible(false);
postEvictTextures();
- m_layerTreeHost->loseOutputSurface(1);
+ m_layerTreeHost->loseContext(1);
m_layerTreeHost->setVisible(true);
break;
default:
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/nine_patch_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698