| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_H_ |
| 6 #define UI_COMPOSITOR_LAYER_H_ | 6 #define UI_COMPOSITOR_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 Layer* parent_; | 402 Layer* parent_; |
| 403 | 403 |
| 404 // This layer's children, in bottom-to-top stacking order. | 404 // This layer's children, in bottom-to-top stacking order. |
| 405 std::vector<Layer*> children_; | 405 std::vector<Layer*> children_; |
| 406 | 406 |
| 407 gfx::Rect bounds_; | 407 gfx::Rect bounds_; |
| 408 | 408 |
| 409 // Visibility of this layer. See SetVisible/IsDrawn for more details. | 409 // Visibility of this layer. See SetVisible/IsDrawn for more details. |
| 410 bool visible_; | 410 bool visible_; |
| 411 | 411 |
| 412 // Computed based on the visibility of this layer and its ancestors. | |
| 413 bool is_drawn_; | |
| 414 | |
| 415 bool force_render_surface_; | 412 bool force_render_surface_; |
| 416 | 413 |
| 417 bool fills_bounds_opaquely_; | 414 bool fills_bounds_opaquely_; |
| 418 | 415 |
| 419 // If true the layer is always up to date. | 416 // If true the layer is always up to date. |
| 420 bool layer_updated_externally_; | 417 bool layer_updated_externally_; |
| 421 | 418 |
| 422 // Union of damaged rects, in pixel coordinates, to be used when | 419 // Union of damaged rects, in pixel coordinates, to be used when |
| 423 // compositor is ready to paint the content. | 420 // compositor is ready to paint the content. |
| 424 SkRegion damaged_region_; | 421 SkRegion damaged_region_; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 // The size of the delegated frame in DIP, set when SetDelegatedFrame was | 477 // The size of the delegated frame in DIP, set when SetDelegatedFrame was |
| 481 // called. | 478 // called. |
| 482 gfx::Size delegated_frame_size_in_dip_; | 479 gfx::Size delegated_frame_size_in_dip_; |
| 483 | 480 |
| 484 DISALLOW_COPY_AND_ASSIGN(Layer); | 481 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 485 }; | 482 }; |
| 486 | 483 |
| 487 } // namespace ui | 484 } // namespace ui |
| 488 | 485 |
| 489 #endif // UI_COMPOSITOR_LAYER_H_ | 486 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |