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

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

Issue 924973003: CC: Force push properties for all layers when tracing is started (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added root_layer() check 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 | « cc/debug/frame_viewer_instrumentation.cc ('k') | cc/layers/layer.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 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // this boolean, this is impossible to determine after the fact without 519 // this boolean, this is impossible to determine after the fact without
520 // wastefully recomputing it. This is public for the time being so that it can 520 // wastefully recomputing it. This is public for the time being so that it can
521 // be accessed from CDP. 521 // be accessed from CDP.
522 bool has_render_surface() const { 522 bool has_render_surface() const {
523 return has_render_surface_; 523 return has_render_surface_;
524 } 524 }
525 525
526 // Sets new frame timing requests for this layer. 526 // Sets new frame timing requests for this layer.
527 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); 527 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests);
528 528
529 void DidBeginTracing();
530
529 protected: 531 protected:
530 friend class LayerImpl; 532 friend class LayerImpl;
531 friend class TreeSynchronizer; 533 friend class TreeSynchronizer;
532 ~Layer() override; 534 ~Layer() override;
533 535
534 Layer(); 536 Layer();
535 537
536 // These SetNeeds functions are in order of severity of update: 538 // These SetNeeds functions are in order of severity of update:
537 // 539 //
538 // Called when this layer has been modified in some way, but isn't sure 540 // Called when this layer has been modified in some way, but isn't sure
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 726
725 std::vector<FrameTimingRequest> frame_timing_requests_; 727 std::vector<FrameTimingRequest> frame_timing_requests_;
726 bool frame_timing_requests_dirty_; 728 bool frame_timing_requests_dirty_;
727 729
728 DISALLOW_COPY_AND_ASSIGN(Layer); 730 DISALLOW_COPY_AND_ASSIGN(Layer);
729 }; 731 };
730 732
731 } // namespace cc 733 } // namespace cc
732 734
733 #endif // CC_LAYERS_LAYER_H_ 735 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698