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

Side by Side Diff: cc/trees/layer_tree_host_impl.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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "cc/animation/animation_events.h" 14 #include "cc/animation/animation_events.h"
15 #include "cc/animation/animation_registrar.h" 15 #include "cc/animation/animation_registrar.h"
16 #include "cc/base/cc_export.h" 16 #include "cc/base/cc_export.h"
17 #include "cc/debug/latency_info.h"
17 #include "cc/input/input_handler.h" 18 #include "cc/input/input_handler.h"
18 #include "cc/input/top_controls_manager_client.h" 19 #include "cc/input/top_controls_manager_client.h"
19 #include "cc/layers/layer_lists.h" 20 #include "cc/layers/layer_lists.h"
20 #include "cc/layers/render_pass_sink.h" 21 #include "cc/layers/render_pass_sink.h"
21 #include "cc/output/output_surface_client.h" 22 #include "cc/output/output_surface_client.h"
22 #include "cc/output/renderer.h" 23 #include "cc/output/renderer.h"
23 #include "cc/quads/render_pass.h" 24 #include "cc/quads/render_pass.h"
24 #include "cc/resources/tile_manager.h" 25 #include "cc/resources/tile_manager.h"
25 #include "skia/ext/refptr.h" 26 #include "skia/ext/refptr.h"
26 #include "third_party/skia/include/core/SkColor.h" 27 #include "third_party/skia/include/core/SkColor.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 LayerImpl* RootLayer() const; 228 LayerImpl* RootLayer() const;
228 LayerImpl* RootScrollLayer() const; 229 LayerImpl* RootScrollLayer() const;
229 LayerImpl* CurrentlyScrollingLayer() const; 230 LayerImpl* CurrentlyScrollingLayer() const;
230 231
231 virtual void SetVisible(bool visible); 232 virtual void SetVisible(bool visible);
232 bool visible() const { return visible_; } 233 bool visible() const { return visible_; }
233 234
234 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 235 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
235 void SetNeedsRedraw() { client_->SetNeedsRedrawOnImplThread(); } 236 void SetNeedsRedraw() { client_->SetNeedsRedrawOnImplThread(); }
236 237
238 void SetLatencyInfo(const LatencyInfo&);
239
237 size_t memory_allocation_limit_bytes() const { 240 size_t memory_allocation_limit_bytes() const {
238 return managed_memory_policy_.bytes_limit_when_visible; 241 return managed_memory_policy_.bytes_limit_when_visible;
239 } 242 }
240 243
241 void SetViewportSize(gfx::Size device_viewport_size); 244 void SetViewportSize(gfx::Size device_viewport_size);
242 gfx::Size device_viewport_size() const { return device_viewport_size_; } 245 gfx::Size device_viewport_size() const { return device_viewport_size_; }
243 246
244 void SetOverdrawBottomHeight(float overdraw_bottom_height); 247 void SetOverdrawBottomHeight(float overdraw_bottom_height);
245 float overdraw_bottom_height() const { return overdraw_bottom_height_; } 248 float overdraw_bottom_height() const { return overdraw_bottom_height_; }
246 249
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 size_t last_sent_memory_use_bytes_; 465 size_t last_sent_memory_use_bytes_;
463 466
464 bool next_frame_damages_full_device_viewport_; 467 bool next_frame_damages_full_device_viewport_;
465 468
466 base::TimeTicks current_frame_time_; 469 base::TimeTicks current_frame_time_;
467 470
468 scoped_ptr<AnimationRegistrar> animation_registrar_; 471 scoped_ptr<AnimationRegistrar> animation_registrar_;
469 472
470 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 473 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
471 474
475 LatencyInfo latency_info_;
476
472 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 477 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
473 }; 478 };
474 479
475 } // namespace cc 480 } // namespace cc
476 481
477 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 482 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698