OLD | NEW |
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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 bool IsDrawnRenderSurfaceLayerListMember() const; | 591 bool IsDrawnRenderSurfaceLayerListMember() const; |
592 | 592 |
593 void Set3dSortingContextId(int id); | 593 void Set3dSortingContextId(int id); |
594 int sorting_context_id() { return sorting_context_id_; } | 594 int sorting_context_id() { return sorting_context_id_; } |
595 | 595 |
596 void PassFrameTimingRequests( | 596 void PassFrameTimingRequests( |
597 std::vector<FrameTimingRequest>* frame_timing_requests); | 597 std::vector<FrameTimingRequest>* frame_timing_requests); |
598 const std::vector<FrameTimingRequest>& frame_timing_requests() const { | 598 const std::vector<FrameTimingRequest>& frame_timing_requests() const { |
599 return frame_timing_requests_; | 599 return frame_timing_requests_; |
600 } | 600 } |
| 601 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
601 | 602 |
602 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } | 603 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } |
603 | 604 |
604 protected: | 605 protected: |
605 LayerImpl(LayerTreeImpl* layer_impl, | 606 LayerImpl(LayerTreeImpl* layer_impl, |
606 int id, | 607 int id, |
607 scoped_refptr<SyncedScrollOffset> scroll_offset); | 608 scoped_refptr<SyncedScrollOffset> scroll_offset); |
608 LayerImpl(LayerTreeImpl* layer_impl, int id); | 609 LayerImpl(LayerTreeImpl* layer_impl, int id); |
609 | 610 |
610 // Get the color and size of the layer's debug border. | 611 // Get the color and size of the layer's debug border. |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 | 768 |
768 std::vector<FrameTimingRequest> frame_timing_requests_; | 769 std::vector<FrameTimingRequest> frame_timing_requests_; |
769 bool frame_timing_requests_dirty_; | 770 bool frame_timing_requests_dirty_; |
770 | 771 |
771 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 772 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
772 }; | 773 }; |
773 | 774 |
774 } // namespace cc | 775 } // namespace cc |
775 | 776 |
776 #endif // CC_LAYERS_LAYER_IMPL_H_ | 777 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |