| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // this boolean, this is impossible to determine after the fact without | 519 // this boolean, this is impossible to determine after the fact without |
| 520 // wastefully recomputing it. This is public for the time being so that it can | 520 // wastefully recomputing it. This is public for the time being so that it can |
| 521 // be accessed from CDP. | 521 // be accessed from CDP. |
| 522 bool has_render_surface() const { | 522 bool has_render_surface() const { |
| 523 return has_render_surface_; | 523 return has_render_surface_; |
| 524 } | 524 } |
| 525 | 525 |
| 526 // Sets new frame timing requests for this layer. | 526 // Sets new frame timing requests for this layer. |
| 527 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); | 527 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); |
| 528 | 528 |
| 529 void DidBeginTracing(); |
| 530 |
| 529 protected: | 531 protected: |
| 530 friend class LayerImpl; | 532 friend class LayerImpl; |
| 531 friend class TreeSynchronizer; | 533 friend class TreeSynchronizer; |
| 532 ~Layer() override; | 534 ~Layer() override; |
| 533 | 535 |
| 534 Layer(); | 536 Layer(); |
| 535 | 537 |
| 536 // These SetNeeds functions are in order of severity of update: | 538 // These SetNeeds functions are in order of severity of update: |
| 537 // | 539 // |
| 538 // Called when this layer has been modified in some way, but isn't sure | 540 // Called when this layer has been modified in some way, but isn't sure |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 | 726 |
| 725 std::vector<FrameTimingRequest> frame_timing_requests_; | 727 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 726 bool frame_timing_requests_dirty_; | 728 bool frame_timing_requests_dirty_; |
| 727 | 729 |
| 728 DISALLOW_COPY_AND_ASSIGN(Layer); | 730 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 729 }; | 731 }; |
| 730 | 732 |
| 731 } // namespace cc | 733 } // namespace cc |
| 732 | 734 |
| 733 #endif // CC_LAYERS_LAYER_H_ | 735 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |