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

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

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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_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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 bool IsDrawnRenderSurfaceLayerListMember() const; 589 bool IsDrawnRenderSurfaceLayerListMember() const;
590 590
591 void Set3dSortingContextId(int id); 591 void Set3dSortingContextId(int id);
592 int sorting_context_id() { return sorting_context_id_; } 592 int sorting_context_id() { return sorting_context_id_; }
593 593
594 void PassFrameTimingRequests( 594 void PassFrameTimingRequests(
595 std::vector<FrameTimingRequest>* frame_timing_requests); 595 std::vector<FrameTimingRequest>* frame_timing_requests);
596 const std::vector<FrameTimingRequest>& frame_timing_requests() const { 596 const std::vector<FrameTimingRequest>& frame_timing_requests() const {
597 return frame_timing_requests_; 597 return frame_timing_requests_;
598 } 598 }
599 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids);
599 600
600 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } 601 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); }
601 602
602 // Get the correct invalidation region instead of conservative Rect 603 // Get the correct invalidation region instead of conservative Rect
603 // for layers that provide it. 604 // for layers that provide it.
604 virtual Region GetInvalidationRegion(); 605 virtual Region GetInvalidationRegion();
605 606
606 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; 607 virtual gfx::Rect GetEnclosingRectInTargetSpace() const;
607 608
608 protected: 609 protected:
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 774
774 std::vector<FrameTimingRequest> frame_timing_requests_; 775 std::vector<FrameTimingRequest> frame_timing_requests_;
775 bool frame_timing_requests_dirty_; 776 bool frame_timing_requests_dirty_;
776 777
777 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 778 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
778 }; 779 };
779 780
780 } // namespace cc 781 } // namespace cc
781 782
782 #endif // CC_LAYERS_LAYER_IMPL_H_ 783 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_timing_tracker_unittest.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698