| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 // this boolean, this is impossible to determine after the fact without | 511 // this boolean, this is impossible to determine after the fact without |
| 512 // wastefully recomputing it. This is public for the time being so that it can | 512 // wastefully recomputing it. This is public for the time being so that it can |
| 513 // be accessed from CDP. | 513 // be accessed from CDP. |
| 514 bool has_render_surface() const { | 514 bool has_render_surface() const { |
| 515 return has_render_surface_; | 515 return has_render_surface_; |
| 516 } | 516 } |
| 517 | 517 |
| 518 // Sets new frame timing requests for this layer. | 518 // Sets new frame timing requests for this layer. |
| 519 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); | 519 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); |
| 520 | 520 |
| 521 void DidBeginTracing(); |
| 522 |
| 521 protected: | 523 protected: |
| 522 friend class LayerImpl; | 524 friend class LayerImpl; |
| 523 friend class TreeSynchronizer; | 525 friend class TreeSynchronizer; |
| 524 ~Layer() override; | 526 ~Layer() override; |
| 525 | 527 |
| 526 Layer(); | 528 Layer(); |
| 527 | 529 |
| 528 // These SetNeeds functions are in order of severity of update: | 530 // These SetNeeds functions are in order of severity of update: |
| 529 // | 531 // |
| 530 // Called when this layer has been modified in some way, but isn't sure | 532 // Called when this layer has been modified in some way, but isn't sure |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 717 |
| 716 std::vector<FrameTimingRequest> frame_timing_requests_; | 718 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 717 bool frame_timing_requests_dirty_; | 719 bool frame_timing_requests_dirty_; |
| 718 | 720 |
| 719 DISALLOW_COPY_AND_ASSIGN(Layer); | 721 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 720 }; | 722 }; |
| 721 | 723 |
| 722 } // namespace cc | 724 } // namespace cc |
| 723 | 725 |
| 724 #endif // CC_LAYERS_LAYER_H_ | 726 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |