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

Unified Diff: cc/texture_update_controller.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address code review comments and fix all cc_unittests Created 8 years, 2 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: cc/texture_update_controller.h
diff --git a/cc/texture_update_controller.h b/cc/texture_update_controller.h
index ee819c7904642c151fa74e56fd8a51e7b5ef3b18..09f828f4cdafef425e06a4a10b7996bf1d55ded8 100644
--- a/cc/texture_update_controller.h
+++ b/cc/texture_update_controller.h
@@ -25,9 +25,9 @@ protected:
class TextureUpdateController : public TimerClient {
public:
- static scoped_ptr<TextureUpdateController> create(TextureUpdateControllerClient* client, Thread* thread, scoped_ptr<TextureUpdateQueue> queue, ResourceProvider* resourceProvider)
+ static scoped_ptr<TextureUpdateController> create(TextureUpdateControllerClient* client, Thread* thread, scoped_ptr<TextureUpdateQueue> queue, ResourceProvider* resourceProvider, bool hasImplThread)
{
- return make_scoped_ptr(new TextureUpdateController(client, thread, queue.Pass(), resourceProvider));
+ return make_scoped_ptr(new TextureUpdateController(client, thread, queue.Pass(), resourceProvider, hasImplThread));
}
static size_t maxPartialTextureUpdates();
@@ -48,7 +48,7 @@ public:
virtual size_t updateMoreTexturesSize() const;
protected:
- TextureUpdateController(TextureUpdateControllerClient*, Thread*, scoped_ptr<TextureUpdateQueue>, ResourceProvider*);
+ TextureUpdateController(TextureUpdateControllerClient*, Thread*, scoped_ptr<TextureUpdateQueue>, ResourceProvider*, bool hasImplThread);
static size_t maxFullUpdatesPerTick(ResourceProvider*);
@@ -61,6 +61,7 @@ protected:
void updateMoreTexturesNow();
TextureUpdateControllerClient* m_client;
+ bool m_hasImplThread;
scoped_ptr<Timer> m_timer;
scoped_ptr<TextureUpdateQueue> m_queue;
bool m_contentsTexturesPurged;

Powered by Google App Engine
This is Rietveld 408576698