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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 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: third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
index 6c6e6f86bc052f645e8de18e61f7ece200338fdd..52e33aeef4624758cf9258c7a87b35a7c3ab02f7 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
@@ -5,9 +5,9 @@
#include "platform/graphics/CompositorMutableState.h"
#include "base/message_loop/message_loop.h"
+#include "cc/test/fake_compositor_frame_sink.h"
#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host_impl.h"
-#include "cc/test/fake_output_surface.h"
#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/layer_tree_host_impl.h"
@@ -23,23 +23,22 @@ namespace blink {
using cc::FakeImplTaskRunnerProvider;
using cc::FakeLayerTreeHostImpl;
-using cc::FakeOutputSurface;
+using cc::FakeCompositorFrameSink;
using cc::LayerImpl;
using cc::LayerTreeSettings;
-using cc::OutputSurface;
using cc::TestTaskGraphRunner;
using cc::TestSharedBitmapManager;
class CompositorMutableStateTest : public testing::Test {
public:
CompositorMutableStateTest()
- : m_outputSurface(FakeOutputSurface::CreateDelegating3d())
+ : m_compositorFrameSink(FakeCompositorFrameSink::Create3d())
{
LayerTreeSettings settings;
settings.layer_transforms_should_scale_layer_contents = true;
m_hostImpl.reset(new FakeLayerTreeHostImpl(settings, &m_taskRunnerProvider, &m_sharedBitmapManager, &m_taskGraphRunner));
m_hostImpl->SetVisible(true);
- EXPECT_TRUE(m_hostImpl->InitializeRenderer(m_outputSurface.get()));
+ EXPECT_TRUE(m_hostImpl->InitializeRenderer(m_compositorFrameSink.get()));
}
void SetLayerPropertiesForTesting(LayerImpl* layer)
@@ -63,7 +62,7 @@ private:
TestSharedBitmapManager m_sharedBitmapManager;
TestTaskGraphRunner m_taskGraphRunner;
FakeImplTaskRunnerProvider m_taskRunnerProvider;
- std::unique_ptr<OutputSurface> m_outputSurface;
+ std::unique_ptr<FakeCompositorFrameSink> m_compositorFrameSink;
std::unique_ptr<FakeLayerTreeHostImpl> m_hostImpl;
};

Powered by Google App Engine
This is Rietveld 408576698