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

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

Issue 10916292: Adaptively throttle texture uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Do not vary partial upload limit 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
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 class FakeTextureCopier : public cc::TextureCopier { 130 class FakeTextureCopier : public cc::TextureCopier {
131 public: 131 public:
132 virtual void copyTexture(Parameters) OVERRIDE { } 132 virtual void copyTexture(Parameters) OVERRIDE { }
133 virtual void flush() OVERRIDE { } 133 virtual void flush() OVERRIDE { }
134 }; 134 };
135 135
136 class FakeTextureUploader : public cc::TextureUploader { 136 class FakeTextureUploader : public cc::TextureUploader {
137 public: 137 public:
138 virtual bool isBusy() OVERRIDE; 138 virtual bool isBusy() OVERRIDE;
139 virtual double estimatedPixelsPerSecond() OVERRIDE { std::numeric_limits<dou ble>::max(); };
reveman 2012/09/18 05:30:35 nit: unnecessary semicolon
brianderson 2012/09/18 20:03:00 Done.
139 virtual void beginUploads() OVERRIDE { } 140 virtual void beginUploads() OVERRIDE { }
140 virtual void endUploads() OVERRIDE { } 141 virtual void endUploads() OVERRIDE { }
141 virtual void uploadTexture(cc::CCResourceProvider*, Parameters upload) OVERR IDE; 142 virtual void uploadTexture(cc::CCResourceProvider*, Parameters upload) OVERR IDE;
142 }; 143 };
143 144
144 } 145 }
145 #endif // CCTiledLayerTestCommon_h 146 #endif // CCTiledLayerTestCommon_h
OLDNEW
« cc/ThrottledTextureUploader.cpp ('K') | « cc/UnthrottledTextureUploader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698