| 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 "CCResourceProvider.h" | |
| 9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "cc/resource_provider.h" |
| 10 #include "cc/texture_uploader.h" | 10 #include "cc/texture_uploader.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 numBlockingUploads() OVERRIDE; | 22 virtual size_t numBlockingUploads() OVERRIDE; |
| 23 virtual void markPendingUploadsAsNonBlocking() OVERRIDE; | 23 virtual void markPendingUploadsAsNonBlocking() OVERRIDE; |
| 24 virtual double estimatedTexturesPerSecond() OVERRIDE; | 24 virtual double estimatedTexturesPerSecond() OVERRIDE; |
| 25 virtual void uploadTexture(CCResourceProvider* resourceProvider, Parameters
upload) OVERRIDE; | 25 virtual void uploadTexture(CCResourceProvider* resourceProvider, Parameters
upload) OVERRIDE; |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 UnthrottledTextureUploader() { } | 28 UnthrottledTextureUploader() { } |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(UnthrottledTextureUploader); | 31 DISALLOW_COPY_AND_ASSIGN(UnthrottledTextureUploader); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } | 34 } |
| 35 | 35 |
| 36 #endif | 36 #endif |
| OLD | NEW |