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

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

Issue 10917251: Move TextureCopier and TextureUploader from CCRenderer to CCResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase merge issues Created 8 years, 3 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/CCThreadProxy.cpp ('k') | webkit/compositor_bindings/TiledLayerChromiumTest.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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 public: 120 public:
121 explicit FakeTiledLayerWithScaledBounds(cc::CCPrioritizedTextureManager*); 121 explicit FakeTiledLayerWithScaledBounds(cc::CCPrioritizedTextureManager*);
122 122
123 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou nds = contentBounds; } 123 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou nds = contentBounds; }
124 virtual cc::IntSize contentBounds() const OVERRIDE; 124 virtual cc::IntSize contentBounds() const OVERRIDE;
125 125
126 protected: 126 protected:
127 cc::IntSize m_forcedContentBounds; 127 cc::IntSize m_forcedContentBounds;
128 }; 128 };
129 129
130 class FakeTextureCopier : public cc::TextureCopier {
131 public:
132 virtual void copyTexture(Parameters) OVERRIDE { }
133 virtual void flush() OVERRIDE { }
134 };
135 130
136 class FakeTextureUploader : public cc::TextureUploader { 131 class FakeTextureUploader : public cc::TextureUploader {
137 public: 132 public:
138 virtual bool isBusy() OVERRIDE; 133 virtual bool isBusy() OVERRIDE;
139 virtual void beginUploads() OVERRIDE { } 134 virtual void beginUploads() OVERRIDE { }
140 virtual void endUploads() OVERRIDE { } 135 virtual void endUploads() OVERRIDE { }
141 virtual void uploadTexture(cc::CCResourceProvider*, Parameters upload) OVERR IDE; 136 virtual void uploadTexture(cc::CCResourceProvider*, Parameters upload) OVERR IDE;
142 }; 137 };
143 138
144 } 139 }
145 #endif // CCTiledLayerTestCommon_h 140 #endif // CCTiledLayerTestCommon_h
OLDNEW
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | webkit/compositor_bindings/TiledLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698