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

Side by Side Diff: cc/layer_tree_host.h

Issue 12566033: cc: Chromify RateLimiter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « no previous file | cc/layer_tree_host.cc » ('j') | cc/rate_limiter.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 float scale, 193 float scale,
194 base::TimeDelta duration); 194 base::TimeDelta duration);
195 195
196 void ApplyScrollAndScale(const ScrollAndScaleSet& info); 196 void ApplyScrollAndScale(const ScrollAndScaleSet& info);
197 197
198 void SetImplTransform(const gfx::Transform& transform); 198 void SetImplTransform(const gfx::Transform& transform);
199 199
200 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); 200 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d);
201 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); 201 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d);
202 202
203 // RateLimitClient implementation 203 // RateLimiterClient implementation.
204 virtual void rateLimit() OVERRIDE; 204 virtual void RateLimit() OVERRIDE;
205 205
206 bool buffered_updates() const { 206 bool buffered_updates() const {
207 return settings_.maxPartialTextureUpdates != 207 return settings_.maxPartialTextureUpdates !=
208 std::numeric_limits<size_t>::max(); 208 std::numeric_limits<size_t>::max();
209 } 209 }
210 bool RequestPartialTextureUpdate(); 210 bool RequestPartialTextureUpdate();
211 211
212 void SetDeviceScaleFactor(float device_scale_factor); 212 void SetDeviceScaleFactor(float device_scale_factor);
213 float device_scale_factor() const { return device_scale_factor_; } 213 float device_scale_factor() const { return device_scale_factor_; }
214 214
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 size_t partial_texture_update_requests_; 310 size_t partial_texture_update_requests_;
311 311
312 scoped_ptr<AnimationRegistrar> animation_registrar_; 312 scoped_ptr<AnimationRegistrar> animation_registrar_;
313 313
314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
315 }; 315 };
316 316
317 } // namespace cc 317 } // namespace cc
318 318
319 #endif // CC_LAYER_TREE_HOST_H_ 319 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host.cc » ('j') | cc/rate_limiter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698