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

Side by Side Diff: cc/layers/layer.h

Issue 1018463005: cc: PushProperties on viewport size change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/layers/picture_layer.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 459
460 void SetNeedsPushProperties(); 460 void SetNeedsPushProperties();
461 bool needs_push_properties() const { return needs_push_properties_; } 461 bool needs_push_properties() const { return needs_push_properties_; }
462 bool descendant_needs_push_properties() const { 462 bool descendant_needs_push_properties() const {
463 return num_dependents_need_push_properties_ > 0; 463 return num_dependents_need_push_properties_ > 0;
464 } 464 }
465 void reset_needs_push_properties_for_testing() { 465 void reset_needs_push_properties_for_testing() {
466 needs_push_properties_ = false; 466 needs_push_properties_ = false;
467 } 467 }
468 468
469 virtual void OnDeviceViewportSizeChanged() {}
470
469 virtual void RunMicroBenchmark(MicroBenchmark* benchmark); 471 virtual void RunMicroBenchmark(MicroBenchmark* benchmark);
470 472
471 void Set3dSortingContextId(int id); 473 void Set3dSortingContextId(int id);
472 int sorting_context_id() const { return sorting_context_id_; } 474 int sorting_context_id() const { return sorting_context_id_; }
473 475
474 void set_transform_tree_index(int index) { transform_tree_index_ = index; } 476 void set_transform_tree_index(int index) { transform_tree_index_ = index; }
475 void set_clip_tree_index(int index) { clip_tree_index_ = index; } 477 void set_clip_tree_index(int index) { clip_tree_index_ = index; }
476 void set_opacity_tree_index(int index) { opacity_tree_index_ = index; } 478 void set_opacity_tree_index(int index) { opacity_tree_index_ = index; }
477 int clip_tree_index() const { return clip_tree_index_; } 479 int clip_tree_index() const { return clip_tree_index_; }
478 int transform_tree_index() const { return transform_tree_index_; } 480 int transform_tree_index() const { return transform_tree_index_; }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 717
716 std::vector<FrameTimingRequest> frame_timing_requests_; 718 std::vector<FrameTimingRequest> frame_timing_requests_;
717 bool frame_timing_requests_dirty_; 719 bool frame_timing_requests_dirty_;
718 720
719 DISALLOW_COPY_AND_ASSIGN(Layer); 721 DISALLOW_COPY_AND_ASSIGN(Layer);
720 }; 722 };
721 723
722 } // namespace cc 724 } // namespace cc
723 725
724 #endif // CC_LAYERS_LAYER_H_ 726 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698