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

Unified Diff: cc/scoped_texture_unittest.cc

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply code review comments Created 8 years, 1 month 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: cc/scoped_texture_unittest.cc
diff --git a/cc/scoped_texture_unittest.cc b/cc/scoped_texture_unittest.cc
index 29e5bb4977cee346402e540b5e5b1b3bfac82ee7..232ec8301154a288126943e8dad2b75b95609064 100644
--- a/cc/scoped_texture_unittest.cc
+++ b/cc/scoped_texture_unittest.cc
@@ -7,7 +7,6 @@
#include "cc/scoped_texture.h"
#include "cc/renderer.h"
-#include "cc/single_thread_proxy.h" // For DebugScopedSetImplThread
#include "cc/test/fake_graphics_context.h"
#include "cc/test/tiled_layer_test_common.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -22,7 +21,6 @@ namespace {
TEST(ScopedTextureTest, NewScopedTexture)
{
scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
- DebugScopedSetImplThread implThread;
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
@@ -37,7 +35,6 @@ TEST(ScopedTextureTest, NewScopedTexture)
TEST(ScopedTextureTest, CreateScopedTexture)
{
scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
- DebugScopedSetImplThread implThread;
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
texture->allocate(Renderer::ImplPool, gfx::Size(30, 30), GL_RGBA, ResourceProvider::TextureUsageAny);
@@ -54,7 +51,6 @@ TEST(ScopedTextureTest, CreateScopedTexture)
TEST(ScopedTextureTest, ScopedTextureIsDeleted)
{
scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
- DebugScopedSetImplThread implThread;
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
{
@@ -82,7 +78,6 @@ TEST(ScopedTextureTest, ScopedTextureIsDeleted)
TEST(ScopedTextureTest, LeakScopedTexture)
{
scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
- DebugScopedSetImplThread implThread;
scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
{
« no previous file with comments | « cc/resource_update_controller_unittest.cc ('k') | cc/scrollbar_animation_controller_linear_fade_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698