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

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

Issue 96073002: Revert 237848 "Use LatencyInfoSwapPromise to track LatencyInfo t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | « trunk/src/cc/cc_tests.gyp ('k') | trunk/src/cc/trees/layer_tree_host.cc » ('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 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 <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 #include "cc/layers/layer_lists.h" 30 #include "cc/layers/layer_lists.h"
31 #include "cc/output/output_surface.h" 31 #include "cc/output/output_surface.h"
32 #include "cc/resources/resource_format.h" 32 #include "cc/resources/resource_format.h"
33 #include "cc/resources/scoped_ui_resource.h" 33 #include "cc/resources/scoped_ui_resource.h"
34 #include "cc/trees/layer_tree_host_client.h" 34 #include "cc/trees/layer_tree_host_client.h"
35 #include "cc/trees/layer_tree_host_common.h" 35 #include "cc/trees/layer_tree_host_common.h"
36 #include "cc/trees/layer_tree_settings.h" 36 #include "cc/trees/layer_tree_settings.h"
37 #include "cc/trees/occlusion_tracker.h" 37 #include "cc/trees/occlusion_tracker.h"
38 #include "cc/trees/proxy.h" 38 #include "cc/trees/proxy.h"
39 #include "third_party/skia/include/core/SkColor.h" 39 #include "third_party/skia/include/core/SkColor.h"
40 #include "ui/events/latency_info.h"
40 #include "ui/gfx/rect.h" 41 #include "ui/gfx/rect.h"
41 42
42 namespace cc { 43 namespace cc {
43 44
44 class AnimationRegistrar; 45 class AnimationRegistrar;
45 class HeadsUpDisplayLayer; 46 class HeadsUpDisplayLayer;
46 class Layer; 47 class Layer;
47 class LayerTreeHostImpl; 48 class LayerTreeHostImpl;
48 class LayerTreeHostImplClient; 49 class LayerTreeHostImplClient;
49 class LayerTreeHostSingleThreadClient; 50 class LayerTreeHostSingleThreadClient;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 bool visible() const { return visible_; } 226 bool visible() const { return visible_; }
226 227
227 void StartPageScaleAnimation(gfx::Vector2d target_offset, 228 void StartPageScaleAnimation(gfx::Vector2d target_offset,
228 bool use_anchor, 229 bool use_anchor,
229 float scale, 230 float scale,
230 base::TimeDelta duration); 231 base::TimeDelta duration);
231 232
232 void ApplyScrollAndScale(const ScrollAndScaleSet& info); 233 void ApplyScrollAndScale(const ScrollAndScaleSet& info);
233 234
234 void SetImplTransform(const gfx::Transform& transform); 235 void SetImplTransform(const gfx::Transform& transform);
236 void SetLatencyInfo(const ui::LatencyInfo& latency_info);
235 237
236 // Virtual for tests. 238 // Virtual for tests.
237 virtual void StartRateLimiter(); 239 virtual void StartRateLimiter();
238 virtual void StopRateLimiter(); 240 virtual void StopRateLimiter();
239 241
240 void RateLimit(); 242 void RateLimit();
241 243
242 bool AlwaysUsePartialTextureUpdates(); 244 bool AlwaysUsePartialTextureUpdates();
243 size_t MaxPartialTextureUpdates() const; 245 size_t MaxPartialTextureUpdates() const;
244 bool RequestPartialTextureUpdate(); 246 bool RequestPartialTextureUpdate();
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 struct PendingPageScaleAnimation { 408 struct PendingPageScaleAnimation {
407 gfx::Vector2d target_offset; 409 gfx::Vector2d target_offset;
408 bool use_anchor; 410 bool use_anchor;
409 float scale; 411 float scale;
410 base::TimeDelta duration; 412 base::TimeDelta duration;
411 }; 413 };
412 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 414 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
413 415
414 bool in_paint_layer_contents_; 416 bool in_paint_layer_contents_;
415 417
418 ui::LatencyInfo latency_info_;
419
416 static const int kTotalFramesToUseForLCDTextMetrics = 50; 420 static const int kTotalFramesToUseForLCDTextMetrics = 50;
417 int total_frames_used_for_lcd_text_metrics_; 421 int total_frames_used_for_lcd_text_metrics_;
418 422
419 struct LCDTextMetrics { 423 struct LCDTextMetrics {
420 LCDTextMetrics() 424 LCDTextMetrics()
421 : total_num_cc_layers(0), 425 : total_num_cc_layers(0),
422 total_num_cc_layers_can_use_lcd_text(0), 426 total_num_cc_layers_can_use_lcd_text(0),
423 total_num_cc_layers_will_use_lcd_text(0) {} 427 total_num_cc_layers_will_use_lcd_text(0) {}
424 428
425 int64 total_num_cc_layers; 429 int64 total_num_cc_layers;
(...skipping 11 matching lines...) Expand all
437 SharedBitmapManager* shared_bitmap_manager_; 441 SharedBitmapManager* shared_bitmap_manager_;
438 442
439 ScopedPtrVector<SwapPromise> swap_promise_list_; 443 ScopedPtrVector<SwapPromise> swap_promise_list_;
440 444
441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 445 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
442 }; 446 };
443 447
444 } // namespace cc 448 } // namespace cc
445 449
446 #endif // CC_TREES_LAYER_TREE_HOST_H_ 450 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « trunk/src/cc/cc_tests.gyp ('k') | trunk/src/cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698