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

Side by Side Diff: cc/layers/layer_impl.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/layers/layer.cc ('k') | cc/layers/layer_impl.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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ptr_util.h" 19 #include "base/memory/ptr_util.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "cc/animation/target_property.h" 21 #include "cc/animation/target_property.h"
22 #include "cc/base/cc_export.h" 22 #include "cc/base/cc_export.h"
23 #include "cc/base/region.h" 23 #include "cc/base/region.h"
24 #include "cc/base/synced_property.h" 24 #include "cc/base/synced_property.h"
25 #include "cc/debug/frame_timing_request.h"
26 #include "cc/input/input_handler.h" 25 #include "cc/input/input_handler.h"
27 #include "cc/layers/draw_properties.h" 26 #include "cc/layers/draw_properties.h"
28 #include "cc/layers/layer_collections.h" 27 #include "cc/layers/layer_collections.h"
29 #include "cc/layers/layer_position_constraint.h" 28 #include "cc/layers/layer_position_constraint.h"
30 #include "cc/layers/performance_properties.h" 29 #include "cc/layers/performance_properties.h"
31 #include "cc/layers/render_surface_impl.h" 30 #include "cc/layers/render_surface_impl.h"
32 #include "cc/output/filter_operations.h" 31 #include "cc/output/filter_operations.h"
33 #include "cc/quads/shared_quad_state.h" 32 #include "cc/quads/shared_quad_state.h"
34 #include "cc/resources/resource_provider.h" 33 #include "cc/resources/resource_provider.h"
35 #include "cc/tiles/tile_priority.h" 34 #include "cc/tiles/tile_priority.h"
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); 524 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark);
526 525
527 void SetDebugInfo( 526 void SetDebugInfo(
528 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); 527 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info);
529 528
530 bool IsDrawnRenderSurfaceLayerListMember() const; 529 bool IsDrawnRenderSurfaceLayerListMember() const;
531 530
532 void Set3dSortingContextId(int id); 531 void Set3dSortingContextId(int id);
533 int sorting_context_id() { return sorting_context_id_; } 532 int sorting_context_id() { return sorting_context_id_; }
534 533
535 void SetFrameTimingRequests(
536 const std::vector<FrameTimingRequest>& frame_timing_requests);
537 const std::vector<FrameTimingRequest>& frame_timing_requests() const {
538 return frame_timing_requests_;
539 }
540 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids);
541
542 const SyncedScrollOffset* synced_scroll_offset() const; 534 const SyncedScrollOffset* synced_scroll_offset() const;
543 SyncedScrollOffset* synced_scroll_offset(); 535 SyncedScrollOffset* synced_scroll_offset();
544 536
545 // Get the correct invalidation region instead of conservative Rect 537 // Get the correct invalidation region instead of conservative Rect
546 // for layers that provide it. 538 // for layers that provide it.
547 virtual Region GetInvalidationRegionForDebugging(); 539 virtual Region GetInvalidationRegionForDebugging();
548 540
549 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; 541 virtual gfx::Rect GetEnclosingRectInTargetSpace() const;
550 542
551 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) { 543 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 DrawProperties draw_properties_; 737 DrawProperties draw_properties_;
746 PerformanceProperties<LayerImpl> performance_properties_; 738 PerformanceProperties<LayerImpl> performance_properties_;
747 739
748 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 740 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
749 owned_debug_info_; 741 owned_debug_info_;
750 base::trace_event::ConvertableToTraceFormat* debug_info_; 742 base::trace_event::ConvertableToTraceFormat* debug_info_;
751 std::unique_ptr<RenderSurfaceImpl> render_surface_; 743 std::unique_ptr<RenderSurfaceImpl> render_surface_;
752 744
753 bool force_render_surface_; 745 bool force_render_surface_;
754 746
755 std::vector<FrameTimingRequest> frame_timing_requests_;
756 bool frame_timing_requests_dirty_;
757 bool scrolls_drawn_descendant_; 747 bool scrolls_drawn_descendant_;
758 // If true, the layer or one of its descendants has a touch handler. 748 // If true, the layer or one of its descendants has a touch handler.
759 bool layer_or_descendant_has_touch_handler_; 749 bool layer_or_descendant_has_touch_handler_;
760 750
761 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 751 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
762 }; 752 };
763 753
764 } // namespace cc 754 } // namespace cc
765 755
766 #endif // CC_LAYERS_LAYER_IMPL_H_ 756 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698