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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
589 int sorting_context_id() { return sorting_context_id_; } | 589 int sorting_context_id() { return sorting_context_id_; } |
590 | 590 |
591 void PassFrameTimingRequests( | 591 void PassFrameTimingRequests( |
592 std::vector<FrameTimingRequest>* frame_timing_requests); | 592 std::vector<FrameTimingRequest>* frame_timing_requests); |
593 const std::vector<FrameTimingRequest>& frame_timing_requests() const { | 593 const std::vector<FrameTimingRequest>& frame_timing_requests() const { |
594 return frame_timing_requests_; | 594 return frame_timing_requests_; |
595 } | 595 } |
596 | 596 |
597 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } | 597 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } |
598 | 598 |
599 // Get the correct invalidation region instead of conservative Rect for | |
600 // layers that can provide it (e.g. picture_layer_imp.h) | |
danakj
2015/02/26 23:53:05
drop the reference to picture_layer_imp.h here I t
daplatz
2015/02/27 11:04:56
Acknowledged.
| |
601 // Used by debug_rect_history.h to track repaint regions. | |
danakj
2015/02/26 23:53:05
Listing callers of functions is sure to go wrong,
daplatz
2015/02/27 11:04:56
Acknowledged.
| |
602 virtual Region GetInvalidationRegion() { return Region(update_rect_); }; | |
danakj
2015/02/26 23:53:05
virtual function bodies must be in the .cc file (t
daplatz
2015/02/27 11:04:56
Acknowledged.
| |
603 | |
599 protected: | 604 protected: |
600 LayerImpl(LayerTreeImpl* layer_impl, | 605 LayerImpl(LayerTreeImpl* layer_impl, |
601 int id, | 606 int id, |
602 scoped_refptr<SyncedScrollOffset> scroll_offset); | 607 scoped_refptr<SyncedScrollOffset> scroll_offset); |
603 LayerImpl(LayerTreeImpl* layer_impl, int id); | 608 LayerImpl(LayerTreeImpl* layer_impl, int id); |
604 | 609 |
605 // Get the color and size of the layer's debug border. | 610 // Get the color and size of the layer's debug border. |
606 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 611 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
607 | 612 |
608 void AppendDebugBorderQuad(RenderPass* render_pass, | 613 void AppendDebugBorderQuad(RenderPass* render_pass, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
762 | 767 |
763 std::vector<FrameTimingRequest> frame_timing_requests_; | 768 std::vector<FrameTimingRequest> frame_timing_requests_; |
764 bool frame_timing_requests_dirty_; | 769 bool frame_timing_requests_dirty_; |
765 | 770 |
766 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 771 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
767 }; | 772 }; |
768 | 773 |
769 } // namespace cc | 774 } // namespace cc |
770 | 775 |
771 #endif // CC_LAYERS_LAYER_IMPL_H_ | 776 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |