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

Side by Side Diff: cc/test/tiled_layer_test_common.h

Issue 11150025: Patch from https://codereview.chromium.org/11111005/ without actual file deletes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/test/fake_web_graphics_context_3d.h ('k') | cc/test/tiled_layer_test_common.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « cc/test/fake_web_graphics_context_3d.h ('k') | cc/test/tiled_layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698