| OLD | NEW |
| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // this boolean, this is impossible to determine after the fact without | 521 // this boolean, this is impossible to determine after the fact without |
| 522 // wastefully recomputing it. This is public for the time being so that it can | 522 // wastefully recomputing it. This is public for the time being so that it can |
| 523 // be accessed from CDP. | 523 // be accessed from CDP. |
| 524 bool has_render_surface() const { | 524 bool has_render_surface() const { |
| 525 return has_render_surface_; | 525 return has_render_surface_; |
| 526 } | 526 } |
| 527 | 527 |
| 528 // Sets new frame timing requests for this layer. | 528 // Sets new frame timing requests for this layer. |
| 529 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); | 529 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); |
| 530 | 530 |
| 531 // Accessor for unit tests |
| 532 const std::vector<FrameTimingRequest>& FrameTimingRequests() const { |
| 533 return frame_timing_requests_; |
| 534 } |
| 535 |
| 531 void DidBeginTracing(); | 536 void DidBeginTracing(); |
| 532 | 537 |
| 533 protected: | 538 protected: |
| 534 friend class LayerImpl; | 539 friend class LayerImpl; |
| 535 friend class TreeSynchronizer; | 540 friend class TreeSynchronizer; |
| 536 ~Layer() override; | 541 ~Layer() override; |
| 537 | 542 |
| 538 Layer(); | 543 Layer(); |
| 539 | 544 |
| 540 // These SetNeeds functions are in order of severity of update: | 545 // These SetNeeds functions are in order of severity of update: |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 | 733 |
| 729 std::vector<FrameTimingRequest> frame_timing_requests_; | 734 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 730 bool frame_timing_requests_dirty_; | 735 bool frame_timing_requests_dirty_; |
| 731 | 736 |
| 732 DISALLOW_COPY_AND_ASSIGN(Layer); | 737 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 733 }; | 738 }; |
| 734 | 739 |
| 735 } // namespace cc | 740 } // namespace cc |
| 736 | 741 |
| 737 #endif // CC_LAYERS_LAYER_H_ | 742 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |