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

Side by Side Diff: cc/UnthrottledTextureUploader.h

Issue 11008017: cc: Never block on uploads from previous frame and increase max pending uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename numPendingUploads to numBlockingUploads and discardPendingUploads to markPendingUploadsAsNon… 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/ThrottledTextureUploaderTest.cpp ('k') | cc/UnthrottledTextureUploader.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 UnthrottledTextureUploader_h 5 #ifndef UnthrottledTextureUploader_h
6 #define UnthrottledTextureUploader_h 6 #define UnthrottledTextureUploader_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "CCResourceProvider.h" 9 #include "CCResourceProvider.h"
10 #include "TextureUploader.h" 10 #include "TextureUploader.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class UnthrottledTextureUploader : public TextureUploader { 14 class UnthrottledTextureUploader : public TextureUploader {
15 public: 15 public:
16 static PassOwnPtr<UnthrottledTextureUploader> create() 16 static PassOwnPtr<UnthrottledTextureUploader> create()
17 { 17 {
18 return adoptPtr(new UnthrottledTextureUploader()); 18 return adoptPtr(new UnthrottledTextureUploader());
19 } 19 }
20 virtual ~UnthrottledTextureUploader() { } 20 virtual ~UnthrottledTextureUploader() { }
21 21
22 virtual size_t numPendingUploads() OVERRIDE; 22 virtual size_t numBlockingUploads() OVERRIDE;
23 virtual void markPendingUploadsAsNonBlocking() OVERRIDE;
23 virtual double estimatedTexturesPerSecond() OVERRIDE; 24 virtual double estimatedTexturesPerSecond() OVERRIDE;
24 virtual void beginUploads() OVERRIDE { } 25 virtual void beginUploads() OVERRIDE { }
25 virtual void endUploads() OVERRIDE { } 26 virtual void endUploads() OVERRIDE { }
26 virtual void uploadTexture(CCResourceProvider* resourceProvider, Parameters upload) OVERRIDE; 27 virtual void uploadTexture(CCResourceProvider* resourceProvider, Parameters upload) OVERRIDE;
27 28
28 protected: 29 protected:
29 UnthrottledTextureUploader() { } 30 UnthrottledTextureUploader() { }
30 31
31 private: 32 private:
32 DISALLOW_COPY_AND_ASSIGN(UnthrottledTextureUploader); 33 DISALLOW_COPY_AND_ASSIGN(UnthrottledTextureUploader);
33 }; 34 };
34 35
35 } 36 }
36 37
37 #endif 38 #endif
OLDNEW
« no previous file with comments | « cc/ThrottledTextureUploaderTest.cpp ('k') | cc/UnthrottledTextureUploader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698