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

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

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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_timing_tracker_unittest.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <unordered_map> 13 #include <unordered_map>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "cc/animation/target_property.h" 20 #include "cc/animation/target_property.h"
21 #include "cc/base/cc_export.h" 21 #include "cc/base/cc_export.h"
22 #include "cc/base/region.h" 22 #include "cc/base/region.h"
23 #include "cc/debug/frame_timing_request.h"
24 #include "cc/debug/micro_benchmark.h" 23 #include "cc/debug/micro_benchmark.h"
25 #include "cc/input/input_handler.h" 24 #include "cc/input/input_handler.h"
26 #include "cc/layers/layer_collections.h" 25 #include "cc/layers/layer_collections.h"
27 #include "cc/layers/layer_position_constraint.h" 26 #include "cc/layers/layer_position_constraint.h"
28 #include "cc/layers/paint_properties.h" 27 #include "cc/layers/paint_properties.h"
29 #include "cc/output/filter_operations.h" 28 #include "cc/output/filter_operations.h"
30 #include "cc/trees/property_tree.h" 29 #include "cc/trees/property_tree.h"
31 #include "third_party/skia/include/core/SkColor.h" 30 #include "third_party/skia/include/core/SkColor.h"
32 #include "third_party/skia/include/core/SkImageFilter.h" 31 #include "third_party/skia/include/core/SkImageFilter.h"
33 #include "third_party/skia/include/core/SkPicture.h" 32 #include "third_party/skia/include/core/SkPicture.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // a Commit. This is called right after property tree being built and should 480 // a Commit. This is called right after property tree being built and should
482 // not trigger property tree rebuild. 481 // not trigger property tree rebuild.
483 void SetHasRenderSurface(bool has_render_surface); 482 void SetHasRenderSurface(bool has_render_surface);
484 bool has_render_surface() const { 483 bool has_render_surface() const {
485 return has_render_surface_; 484 return has_render_surface_;
486 } 485 }
487 486
488 void SetSubtreePropertyChanged(); 487 void SetSubtreePropertyChanged();
489 bool subtree_property_changed() const { return subtree_property_changed_; } 488 bool subtree_property_changed() const { return subtree_property_changed_; }
490 489
491 // Sets new frame timing requests for this layer.
492 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests);
493
494 // Accessor for unit tests
495 const std::vector<FrameTimingRequest>& FrameTimingRequests() const {
496 return frame_timing_requests_;
497 }
498
499 void DidBeginTracing(); 490 void DidBeginTracing();
500 491
501 int num_copy_requests_in_target_subtree(); 492 int num_copy_requests_in_target_subtree();
502 493
503 void SetElementId(uint64_t id); 494 void SetElementId(uint64_t id);
504 uint64_t element_id() const { return element_id_; } 495 uint64_t element_id() const { return element_id_; }
505 496
506 void SetMutableProperties(uint32_t properties); 497 void SetMutableProperties(uint32_t properties);
507 uint32_t mutable_properties() const { return mutable_properties_; } 498 uint32_t mutable_properties() const { return mutable_properties_; }
508 499
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; 673 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_;
683 674
684 base::Closure did_scroll_callback_; 675 base::Closure did_scroll_callback_;
685 676
686 PaintProperties paint_properties_; 677 PaintProperties paint_properties_;
687 678
688 // These all act like draw properties, so don't need push properties. 679 // These all act like draw properties, so don't need push properties.
689 gfx::Rect visible_layer_rect_; 680 gfx::Rect visible_layer_rect_;
690 size_t num_unclipped_descendants_; 681 size_t num_unclipped_descendants_;
691 682
692 std::vector<FrameTimingRequest> frame_timing_requests_;
693 bool frame_timing_requests_dirty_;
694
695 DISALLOW_COPY_AND_ASSIGN(Layer); 683 DISALLOW_COPY_AND_ASSIGN(Layer);
696 }; 684 };
697 685
698 } // namespace cc 686 } // namespace cc
699 687
700 #endif // CC_LAYERS_LAYER_H_ 688 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_timing_tracker_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698