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

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

Issue 692213002: Create PageScaleAnimation after ImplTree is activated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « cc/input/page_scale_animation.h ('k') | 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 <set> 10 #include <set>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class LayerTreeHostSingleThreadClient; 56 class LayerTreeHostSingleThreadClient;
57 class PrioritizedResource; 57 class PrioritizedResource;
58 class PrioritizedResourceManager; 58 class PrioritizedResourceManager;
59 class Region; 59 class Region;
60 class RenderingStatsInstrumentation; 60 class RenderingStatsInstrumentation;
61 class ResourceProvider; 61 class ResourceProvider;
62 class ResourceUpdateQueue; 62 class ResourceUpdateQueue;
63 class SharedBitmapManager; 63 class SharedBitmapManager;
64 class TopControlsManager; 64 class TopControlsManager;
65 class UIResourceRequest; 65 class UIResourceRequest;
66 struct PendingPageScaleAnimation;
66 struct RenderingStats; 67 struct RenderingStats;
67 struct ScrollAndScaleSet; 68 struct ScrollAndScaleSet;
68 69
69 // Provides information on an Impl's rendering capabilities back to the 70 // Provides information on an Impl's rendering capabilities back to the
70 // LayerTreeHost. 71 // LayerTreeHost.
71 struct CC_EXPORT RendererCapabilities { 72 struct CC_EXPORT RendererCapabilities {
72 RendererCapabilities(ResourceFormat best_texture_format, 73 RendererCapabilities(ResourceFormat best_texture_format,
73 bool allow_partial_texture_updates, 74 bool allow_partial_texture_updates,
74 int max_texture_size, 75 int max_texture_size,
75 bool using_shared_memory_resources); 76 bool using_shared_memory_resources);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 427
427 // If set, this texture is used to fill in the parts of the screen not 428 // If set, this texture is used to fill in the parts of the screen not
428 // covered by layers. 429 // covered by layers.
429 scoped_ptr<ScopedUIResource> overhang_ui_resource_; 430 scoped_ptr<ScopedUIResource> overhang_ui_resource_;
430 431
431 typedef ScopedPtrVector<PrioritizedResource> TextureList; 432 typedef ScopedPtrVector<PrioritizedResource> TextureList;
432 size_t partial_texture_update_requests_; 433 size_t partial_texture_update_requests_;
433 434
434 scoped_ptr<AnimationRegistrar> animation_registrar_; 435 scoped_ptr<AnimationRegistrar> animation_registrar_;
435 436
436 struct PendingPageScaleAnimation {
437 gfx::Vector2d target_offset;
438 bool use_anchor;
439 float scale;
440 base::TimeDelta duration;
441 };
442 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 437 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
443 438
444 bool in_paint_layer_contents_; 439 bool in_paint_layer_contents_;
445 440
446 static const int kTotalFramesToUseForLCDTextMetrics = 50; 441 static const int kTotalFramesToUseForLCDTextMetrics = 50;
447 int total_frames_used_for_lcd_text_metrics_; 442 int total_frames_used_for_lcd_text_metrics_;
448 443
449 struct LCDTextMetrics { 444 struct LCDTextMetrics {
450 LCDTextMetrics() 445 LCDTextMetrics()
451 : total_num_cc_layers(0), 446 : total_num_cc_layers(0),
(...skipping 23 matching lines...) Expand all
475 470
476 uint32_t surface_id_namespace_; 471 uint32_t surface_id_namespace_;
477 uint32_t next_surface_sequence_; 472 uint32_t next_surface_sequence_;
478 473
479 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 474 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
480 }; 475 };
481 476
482 } // namespace cc 477 } // namespace cc
483 478
484 #endif // CC_TREES_LAYER_TREE_HOST_H_ 479 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/input/page_scale_animation.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698