| Index: cc/gl_renderer_unittest.cc
|
| diff --git a/cc/gl_renderer_unittest.cc b/cc/gl_renderer_unittest.cc
|
| index 919c4d5635115b04d21c92f4f1e87cce2804c7ce..a6cd6a0ae2d1bad867256c338b40bda4e1a91be9 100644
|
| --- a/cc/gl_renderer_unittest.cc
|
| +++ b/cc/gl_renderer_unittest.cc
|
| @@ -7,7 +7,7 @@
|
| #include "cc/draw_quad.h"
|
| #include "cc/prioritized_resource_manager.h"
|
| #include "cc/resource_provider.h"
|
| -#include "cc/test/fake_web_compositor_output_surface.h"
|
| +#include "cc/test/fake_output_surface.h"
|
| #include "cc/test/fake_web_graphics_context_3d.h"
|
| #include "cc/test/render_pass_test_common.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| @@ -113,7 +113,7 @@ protected:
|
| GLRendererTest()
|
| : m_suggestHaveBackbufferYes(1, true)
|
| , m_suggestHaveBackbufferNo(1, false)
|
| - , m_context(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new FrameCountingMemoryAllocationSettingContext())))
|
| + , m_context(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new FrameCountingMemoryAllocationSettingContext())))
|
| , m_resourceProvider(ResourceProvider::create(m_context.get()))
|
| , m_renderer(&m_mockClient, m_resourceProvider.get())
|
| {
|
| @@ -129,7 +129,7 @@ protected:
|
| m_renderer.swapBuffers();
|
| }
|
|
|
| - FrameCountingMemoryAllocationSettingContext* context() { return static_cast<FrameCountingMemoryAllocationSettingContext*>(m_context->context3D()); }
|
| + FrameCountingMemoryAllocationSettingContext* context() { return static_cast<FrameCountingMemoryAllocationSettingContext*>(m_context->Context3D()); }
|
|
|
| WebGraphicsMemoryAllocation m_suggestHaveBackbufferYes;
|
| WebGraphicsMemoryAllocation m_suggestHaveBackbufferNo;
|
| @@ -295,7 +295,7 @@ public:
|
| TEST(GLRendererTest2, initializationDoesNotMakeSynchronousCalls)
|
| {
|
| FakeRendererClient mockClient;
|
| - scoped_ptr<GraphicsContext> context(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ForbidSynchronousCallContext)));
|
| + scoped_ptr<GraphicsContext> context(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ForbidSynchronousCallContext)));
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
|
| FakeRendererGL renderer(&mockClient, resourceProvider.get());
|
|
|
| @@ -338,7 +338,7 @@ private:
|
| TEST(GLRendererTest2, initializationWithQuicklyLostContextDoesNotAssert)
|
| {
|
| FakeRendererClient mockClient;
|
| - scoped_ptr<GraphicsContext> context(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new LoseContextOnFirstGetContext)));
|
| + scoped_ptr<GraphicsContext> context(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new LoseContextOnFirstGetContext)));
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
|
| FakeRendererGL renderer(&mockClient, resourceProvider.get());
|
|
|
| @@ -360,7 +360,7 @@ public:
|
| TEST(GLRendererTest2, initializationWithoutGpuMemoryManagerExtensionSupportShouldDefaultToNonZeroAllocation)
|
| {
|
| FakeRendererClient mockClient;
|
| - scoped_ptr<GraphicsContext> context(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ContextThatDoesNotSupportMemoryManagmentExtensions)));
|
| + scoped_ptr<GraphicsContext> context(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ContextThatDoesNotSupportMemoryManagmentExtensions)));
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
|
| FakeRendererGL renderer(&mockClient, resourceProvider.get());
|
|
|
| @@ -387,8 +387,8 @@ private:
|
| TEST(GLRendererTest2, opaqueBackground)
|
| {
|
| FakeRendererClient mockClient;
|
| - scoped_ptr<GraphicsContext> outputSurface(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ClearCountingContext)));
|
| - ClearCountingContext* context = static_cast<ClearCountingContext*>(outputSurface->context3D());
|
| + scoped_ptr<GraphicsContext> outputSurface(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ClearCountingContext)));
|
| + ClearCountingContext* context = static_cast<ClearCountingContext*>(outputSurface->Context3D());
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(outputSurface.get()));
|
| FakeRendererGL renderer(&mockClient, resourceProvider.get());
|
|
|
| @@ -410,8 +410,8 @@ TEST(GLRendererTest2, opaqueBackground)
|
| TEST(GLRendererTest2, transparentBackground)
|
| {
|
| FakeRendererClient mockClient;
|
| - scoped_ptr<GraphicsContext> outputSurface(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ClearCountingContext)));
|
| - ClearCountingContext* context = static_cast<ClearCountingContext*>(outputSurface->context3D());
|
| + scoped_ptr<GraphicsContext> outputSurface(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new ClearCountingContext)));
|
| + ClearCountingContext* context = static_cast<ClearCountingContext*>(outputSurface->Context3D());
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(outputSurface.get()));
|
| FakeRendererGL renderer(&mockClient, resourceProvider.get());
|
|
|
| @@ -461,8 +461,8 @@ private:
|
| TEST(GLRendererTest2, visibilityChangeIsLastCall)
|
| {
|
| FakeRendererClient mockClient;
|
| - scoped_ptr<GraphicsContext> outputSurface(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new VisibilityChangeIsLastCallTrackingContext)));
|
| - VisibilityChangeIsLastCallTrackingContext* context = static_cast<VisibilityChangeIsLastCallTrackingContext*>(outputSurface->context3D());
|
| + scoped_ptr<GraphicsContext> outputSurface(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new VisibilityChangeIsLastCallTrackingContext)));
|
| + VisibilityChangeIsLastCallTrackingContext* context = static_cast<VisibilityChangeIsLastCallTrackingContext*>(outputSurface->Context3D());
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(outputSurface.get()));
|
| FakeRendererGL renderer(&mockClient, resourceProvider.get());
|
|
|
| @@ -523,8 +523,8 @@ private:
|
| TEST(GLRendererTest2, activeTextureState)
|
| {
|
| FakeRendererClient fakeClient;
|
| - scoped_ptr<GraphicsContext> outputSurface(FakeWebCompositorOutputSurface::create(scoped_ptr<WebKit::WebGraphicsContext3D>(new TextureStateTrackingContext)));
|
| - TextureStateTrackingContext* context = static_cast<TextureStateTrackingContext*>(outputSurface->context3D());
|
| + scoped_ptr<GraphicsContext> outputSurface(FakeOutputSurface::Create(scoped_ptr<WebKit::WebGraphicsContext3D>(new TextureStateTrackingContext)));
|
| + TextureStateTrackingContext* context = static_cast<TextureStateTrackingContext*>(outputSurface->Context3D());
|
| scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(outputSurface.get()));
|
| FakeRendererGL renderer(&fakeClient, resourceProvider.get());
|
|
|
|
|