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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 void CreateWebLayer(); | 334 void CreateWebLayer(); |
335 void RecomputeTransform(); | 335 void RecomputeTransform(); |
336 void RecomputeDrawsContentAndUVRect(); | 336 void RecomputeDrawsContentAndUVRect(); |
337 | 337 |
338 // Set all filters which got applied to the layer. | 338 // Set all filters which got applied to the layer. |
339 void SetLayerFilters(); | 339 void SetLayerFilters(); |
340 | 340 |
341 // Set all filters which got applied to the layer background. | 341 // Set all filters which got applied to the layer background. |
342 void SetLayerBackgroundFilters(); | 342 void SetLayerBackgroundFilters(); |
343 | 343 |
| 344 void OnParentIsDrawnChanged(bool parent_is_drawn, bool force_update); |
| 345 |
344 const LayerType type_; | 346 const LayerType type_; |
345 | 347 |
346 Compositor* compositor_; | 348 Compositor* compositor_; |
347 | 349 |
348 scoped_refptr<ui::Texture> texture_; | 350 scoped_refptr<ui::Texture> texture_; |
349 | 351 |
350 Layer* parent_; | 352 Layer* parent_; |
351 | 353 |
352 // This layer's children, in bottom-to-top stacking order. | 354 // This layer's children, in bottom-to-top stacking order. |
353 std::vector<Layer*> children_; | 355 std::vector<Layer*> children_; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 421 |
420 // A cached copy of |Compositor::device_scale_factor()|. | 422 // A cached copy of |Compositor::device_scale_factor()|. |
421 float device_scale_factor_; | 423 float device_scale_factor_; |
422 | 424 |
423 DISALLOW_COPY_AND_ASSIGN(Layer); | 425 DISALLOW_COPY_AND_ASSIGN(Layer); |
424 }; | 426 }; |
425 | 427 |
426 } // namespace ui | 428 } // namespace ui |
427 | 429 |
428 #endif // UI_COMPOSITOR_LAYER_H_ | 430 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |