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 CCTiledLayerTestCommon_h | 5 #ifndef CCTiledLayerTestCommon_h |
6 #define CCTiledLayerTestCommon_h | 6 #define CCTiledLayerTestCommon_h |
7 | 7 |
8 #include "CCGraphicsContext.h" | 8 #include "CCGraphicsContext.h" |
9 #include "CCPrioritizedTexture.h" | 9 #include "CCPrioritizedTexture.h" |
10 #include "CCResourceProvider.h" | 10 #include "CCResourceProvider.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual void update(cc::CCTextureUpdateQueue&, const cc::IntRect&, const
cc::IntSize&, bool, cc::CCRenderingStats&) OVERRIDE; | 32 virtual void update(cc::CCTextureUpdateQueue&, const cc::IntRect&, const
cc::IntSize&, bool, cc::CCRenderingStats&) OVERRIDE; |
33 | 33 |
34 private: | 34 private: |
35 FakeLayerTextureUpdater* m_layer; | 35 FakeLayerTextureUpdater* m_layer; |
36 }; | 36 }; |
37 | 37 |
38 FakeLayerTextureUpdater(); | 38 FakeLayerTextureUpdater(); |
39 virtual ~FakeLayerTextureUpdater(); | 39 virtual ~FakeLayerTextureUpdater(); |
40 | 40 |
41 virtual PassOwnPtr<cc::LayerTextureUpdater::Texture> createTexture(cc::CCPri
oritizedTextureManager*) OVERRIDE; | 41 virtual PassOwnPtr<cc::LayerTextureUpdater::Texture> createTexture(cc::CCPri
oritizedTextureManager*) OVERRIDE; |
42 virtual SampledTexelFormat sampledTexelFormat(GC3Denum) OVERRIDE; | 42 virtual SampledTexelFormat sampledTexelFormat(GLenum) OVERRIDE; |
43 | 43 |
44 virtual void prepareToUpdate(const cc::IntRect& contentRect, const cc::IntSi
ze&, float, float, cc::IntRect& resultingOpaqueRect, cc::CCRenderingStats&) OVER
RIDE; | 44 virtual void prepareToUpdate(const cc::IntRect& contentRect, const cc::IntSi
ze&, float, float, cc::IntRect& resultingOpaqueRect, cc::CCRenderingStats&) OVER
RIDE; |
45 // Sets the rect to invalidate during the next call to prepareToUpdate(). Af
ter the next | 45 // Sets the rect to invalidate during the next call to prepareToUpdate(). Af
ter the next |
46 // call to prepareToUpdate() the rect is reset. | 46 // call to prepareToUpdate() the rect is reset. |
47 void setRectToInvalidate(const cc::IntRect&, FakeTiledLayerChromium*); | 47 void setRectToInvalidate(const cc::IntRect&, FakeTiledLayerChromium*); |
48 // Last rect passed to prepareToUpdate(). | 48 // Last rect passed to prepareToUpdate(). |
49 const cc::IntRect& lastUpdateRect() const { return m_lastUpdateRect; } | 49 const cc::IntRect& lastUpdateRect() const { return m_lastUpdateRect; } |
50 | 50 |
51 // Number of times prepareToUpdate has been invoked. | 51 // Number of times prepareToUpdate has been invoked. |
52 int prepareCount() const { return m_prepareCount; } | 52 int prepareCount() const { return m_prepareCount; } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 class FakeTextureUploader : public cc::TextureUploader { | 125 class FakeTextureUploader : public cc::TextureUploader { |
126 public: | 126 public: |
127 virtual size_t numBlockingUploads() OVERRIDE; | 127 virtual size_t numBlockingUploads() OVERRIDE; |
128 virtual void markPendingUploadsAsNonBlocking() OVERRIDE; | 128 virtual void markPendingUploadsAsNonBlocking() OVERRIDE; |
129 virtual double estimatedTexturesPerSecond() OVERRIDE; | 129 virtual double estimatedTexturesPerSecond() OVERRIDE; |
130 virtual void uploadTexture(cc::CCResourceProvider*, Parameters) OVERRIDE; | 130 virtual void uploadTexture(cc::CCResourceProvider*, Parameters) OVERRIDE; |
131 }; | 131 }; |
132 | 132 |
133 } | 133 } |
134 #endif // CCTiledLayerTestCommon_h | 134 #endif // CCTiledLayerTestCommon_h |
OLD | NEW |