OLD | NEW |
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 "CCResourceProvider.h" | 9 #include "CCResourceProvider.h" |
9 #include "TextureUploader.h" | 10 #include "TextureUploader.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 class UnthrottledTextureUploader : public TextureUploader { | 14 class UnthrottledTextureUploader : public TextureUploader { |
14 WTF_MAKE_NONCOPYABLE(UnthrottledTextureUploader); | |
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 bool isBusy() OVERRIDE; | 22 virtual bool isBusy() OVERRIDE; |
23 virtual double estimatedTexturesPerSecond() OVERRIDE; | 23 virtual double estimatedTexturesPerSecond() OVERRIDE; |
24 virtual void beginUploads() OVERRIDE { } | 24 virtual void beginUploads() OVERRIDE { } |
25 virtual void endUploads() OVERRIDE { } | 25 virtual void endUploads() OVERRIDE { } |
26 virtual void uploadTexture(CCResourceProvider* resourceProvider, Parameters
upload) OVERRIDE; | 26 virtual void uploadTexture(CCResourceProvider* resourceProvider, Parameters
upload) OVERRIDE; |
27 | 27 |
28 protected: | 28 protected: |
29 UnthrottledTextureUploader() { } | 29 UnthrottledTextureUploader() { } |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(UnthrottledTextureUploader); |
30 }; | 33 }; |
31 | 34 |
32 } | 35 } |
33 | 36 |
34 #endif | 37 #endif |
OLD | NEW |