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

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

Issue 2144303002: Made layout viewport scroll updates from compositor work like ordinary layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rootScrollerOnCompositor
Patch Set: Initialize ScrollUpdateInfo's layer id in constructor Created 4 years, 5 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
« no previous file with comments | « no previous file | 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 471
472 void RecordGpuRasterizationHistogram(); 472 void RecordGpuRasterizationHistogram();
473 473
474 private: 474 private:
475 friend class LayerTreeHostSerializationTest; 475 friend class LayerTreeHostSerializationTest;
476 476
477 // This is the number of consecutive frames in which we want the content to be 477 // This is the number of consecutive frames in which we want the content to be
478 // suitable for GPU rasterization before re-enabling it. 478 // suitable for GPU rasterization before re-enabling it.
479 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; 479 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 };
480 480
481 void ApplyViewportDeltas(ScrollAndScaleSet* info);
481 void InitializeProxy( 482 void InitializeProxy(
482 std::unique_ptr<Proxy> proxy, 483 std::unique_ptr<Proxy> proxy,
483 std::unique_ptr<BeginFrameSource> external_begin_frame_source); 484 std::unique_ptr<BeginFrameSource> external_begin_frame_source);
484 485
485 bool DoUpdateLayers(Layer* root_layer); 486 bool DoUpdateLayers(Layer* root_layer);
486 void UpdateHudLayer(); 487 void UpdateHudLayer();
487 488
488 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time); 489 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time);
489 490
490 struct UIResourceClientData { 491 struct UIResourceClientData {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 uint32_t surface_client_id_; 606 uint32_t surface_client_id_;
606 uint32_t next_surface_sequence_; 607 uint32_t next_surface_sequence_;
607 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; 608 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0;
608 609
609 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 610 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
610 }; 611 };
611 612
612 } // namespace cc 613 } // namespace cc
613 614
614 #endif // CC_TREES_LAYER_TREE_HOST_H_ 615 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698