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

Side by Side Diff: cc/CCTextureUpdateController.h

Issue 10937007: cc: Only use upload throttling when performing full texture uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and update TiledLayerChromiumTest Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCSingleThreadProxy.cpp ('k') | cc/CCTextureUpdateController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CCTextureUpdateController_h 5 #ifndef CCTextureUpdateController_h
6 #define CCTextureUpdateController_h 6 #define CCTextureUpdateController_h
7 7
8 #include "CCTextureUpdateQueue.h" 8 #include "CCTextureUpdateQueue.h"
9 #include "CCTimer.h" 9 #include "CCTimer.h"
10 #include <wtf/Noncopyable.h> 10 #include <wtf/Noncopyable.h>
(...skipping 12 matching lines...) Expand all
23 }; 23 };
24 24
25 class CCTextureUpdateController : public CCTimerClient { 25 class CCTextureUpdateController : public CCTimerClient {
26 WTF_MAKE_NONCOPYABLE(CCTextureUpdateController); 26 WTF_MAKE_NONCOPYABLE(CCTextureUpdateController);
27 public: 27 public:
28 static PassOwnPtr<CCTextureUpdateController> create(CCTextureUpdateControlle rClient* client, CCThread* thread, PassOwnPtr<CCTextureUpdateQueue> queue, CCRes ourceProvider* resourceProvider, TextureUploader* uploader) 28 static PassOwnPtr<CCTextureUpdateController> create(CCTextureUpdateControlle rClient* client, CCThread* thread, PassOwnPtr<CCTextureUpdateQueue> queue, CCRes ourceProvider* resourceProvider, TextureUploader* uploader)
29 { 29 {
30 return adoptPtr(new CCTextureUpdateController(client, thread, queue, res ourceProvider, uploader)); 30 return adoptPtr(new CCTextureUpdateController(client, thread, queue, res ourceProvider, uploader));
31 } 31 }
32 static size_t maxPartialTextureUpdates(); 32 static size_t maxPartialTextureUpdates();
33 static void updateTextures(CCResourceProvider*, TextureUploader*, CCTextureU pdateQueue*, size_t count); 33 static void updateTextures(CCResourceProvider*, TextureUploader*, CCTextureU pdateQueue*);
34 34
35 virtual ~CCTextureUpdateController(); 35 virtual ~CCTextureUpdateController();
36 36
37 void performMoreUpdates(double monotonicTimeLimit); 37 void performMoreUpdates(double monotonicTimeLimit);
38 void finalize(); 38 void finalize();
39 39
40 // CCTimerClient implementation. 40 // CCTimerClient implementation.
41 virtual void onTimerFired() OVERRIDE; 41 virtual void onTimerFired() OVERRIDE;
42 42
43 // Virtual for testing. 43 // Virtual for testing.
(...skipping 14 matching lines...) Expand all
58 bool m_contentsTexturesPurged; 58 bool m_contentsTexturesPurged;
59 CCResourceProvider* m_resourceProvider; 59 CCResourceProvider* m_resourceProvider;
60 TextureUploader* m_uploader; 60 TextureUploader* m_uploader;
61 double m_monotonicTimeLimit; 61 double m_monotonicTimeLimit;
62 bool m_firstUpdateAttempt; 62 bool m_firstUpdateAttempt;
63 }; 63 };
64 64
65 } 65 }
66 66
67 #endif // CCTextureUpdateController_h 67 #endif // CCTextureUpdateController_h
OLDNEW
« no previous file with comments | « cc/CCSingleThreadProxy.cpp ('k') | cc/CCTextureUpdateController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698