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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 14092003: Add compositor support for the LatencyInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/cancelable_callback.h" 12 #include "base/cancelable_callback.h"
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "cc/animation/animation_events.h" 18 #include "cc/animation/animation_events.h"
19 #include "cc/base/cc_export.h" 19 #include "cc/base/cc_export.h"
20 #include "cc/base/scoped_ptr_vector.h" 20 #include "cc/base/scoped_ptr_vector.h"
21 #include "cc/debug/latency_info.h"
21 #include "cc/layers/layer_lists.h" 22 #include "cc/layers/layer_lists.h"
22 #include "cc/output/output_surface.h" 23 #include "cc/output/output_surface.h"
23 #include "cc/scheduler/rate_limiter.h" 24 #include "cc/scheduler/rate_limiter.h"
24 #include "cc/trees/layer_tree_host_client.h" 25 #include "cc/trees/layer_tree_host_client.h"
25 #include "cc/trees/layer_tree_host_common.h" 26 #include "cc/trees/layer_tree_host_common.h"
26 #include "cc/trees/layer_tree_settings.h" 27 #include "cc/trees/layer_tree_settings.h"
27 #include "cc/trees/occlusion_tracker.h" 28 #include "cc/trees/occlusion_tracker.h"
28 #include "cc/trees/proxy.h" 29 #include "cc/trees/proxy.h"
29 #include "skia/ext/refptr.h" 30 #include "skia/ext/refptr.h"
30 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" 31 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 bool visible() const { return visible_; } 204 bool visible() const { return visible_; }
204 205
205 void StartPageScaleAnimation(gfx::Vector2d target_offset, 206 void StartPageScaleAnimation(gfx::Vector2d target_offset,
206 bool use_anchor, 207 bool use_anchor,
207 float scale, 208 float scale,
208 base::TimeDelta duration); 209 base::TimeDelta duration);
209 210
210 void ApplyScrollAndScale(const ScrollAndScaleSet& info); 211 void ApplyScrollAndScale(const ScrollAndScaleSet& info);
211 212
212 void SetImplTransform(const gfx::Transform& transform); 213 void SetImplTransform(const gfx::Transform& transform);
214 void SetLatencyInfo(const LatencyInfo& latency_info);
213 215
214 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); 216 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d);
215 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); 217 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d);
216 218
217 // RateLimiterClient implementation. 219 // RateLimiterClient implementation.
218 virtual void RateLimit() OVERRIDE; 220 virtual void RateLimit() OVERRIDE;
219 221
220 bool buffered_updates() const { 222 bool buffered_updates() const {
221 return settings_.max_partial_texture_updates != 223 return settings_.max_partial_texture_updates !=
222 std::numeric_limits<size_t>::max(); 224 std::numeric_limits<size_t>::max();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 scoped_ptr<AnimationRegistrar> animation_registrar_; 328 scoped_ptr<AnimationRegistrar> animation_registrar_;
327 329
328 struct PendingPageScaleAnimation { 330 struct PendingPageScaleAnimation {
329 gfx::Vector2d target_offset; 331 gfx::Vector2d target_offset;
330 bool use_anchor; 332 bool use_anchor;
331 float scale; 333 float scale;
332 base::TimeDelta duration; 334 base::TimeDelta duration;
333 }; 335 };
334 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 336 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
335 337
338 LatencyInfo latency_info_;
339
336 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 340 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
337 }; 341 };
338 342
339 } // namespace cc 343 } // namespace cc
340 344
341 #endif // CC_TREES_LAYER_TREE_HOST_H_ 345 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698