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

Unified Diff: cc/scoped_resource_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/scheduler_state_machine_unittest.cc ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_resource_unittest.cc
===================================================================
--- cc/scoped_resource_unittest.cc (revision 171405)
+++ cc/scoped_resource_unittest.cc (working copy)
@@ -5,7 +5,7 @@
#include "cc/scoped_resource.h"
#include "cc/renderer.h"
-#include "cc/test/fake_output_surface.h"
+#include "cc/test/fake_graphics_context.h"
#include "cc/test/tiled_layer_test_common.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/khronos/GLES2/gl2.h"
@@ -17,7 +17,7 @@
TEST(ScopedResourceTest, NewScopedResource)
{
- scoped_ptr<OutputSurface> context(createFakeOutputSurface());
+ scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
scoped_ptr<ScopedResource> texture = ScopedResource::create(resourceProvider.get());
@@ -31,7 +31,7 @@
TEST(ScopedResourceTest, CreateScopedResource)
{
- scoped_ptr<OutputSurface> context(createFakeOutputSurface());
+ scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
scoped_ptr<ScopedResource> texture = ScopedResource::create(resourceProvider.get());
texture->Allocate(Renderer::ImplPool, gfx::Size(30, 30), GL_RGBA, ResourceProvider::TextureUsageAny);
@@ -47,7 +47,7 @@
TEST(ScopedResourceTest, ScopedResourceIsDeleted)
{
- scoped_ptr<OutputSurface> context(createFakeOutputSurface());
+ scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
{
@@ -74,7 +74,7 @@
TEST(ScopedResourceTest, LeakScopedResource)
{
- scoped_ptr<OutputSurface> context(createFakeOutputSurface());
+ scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
{
« no previous file with comments | « cc/scheduler_state_machine_unittest.cc ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698