OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_OUTPUT_DC_LAYER_OVERLAY_H_ | 5 #ifndef CC_OUTPUT_DC_LAYER_OVERLAY_H_ |
6 #define CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 6 #define CC_OUTPUT_DC_LAYER_OVERLAY_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "cc/quads/render_pass.h" | 9 #include "cc/quads/render_pass.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Holds all information necessary to construct a DCLayer from a DrawQuad. | 37 // Holds all information necessary to construct a DCLayer from a DrawQuad. |
38 class CC_EXPORT DCLayerOverlay { | 38 class CC_EXPORT DCLayerOverlay { |
39 public: | 39 public: |
40 DCLayerOverlay(); | 40 DCLayerOverlay(); |
41 DCLayerOverlay(const DCLayerOverlay& other); | 41 DCLayerOverlay(const DCLayerOverlay& other); |
42 ~DCLayerOverlay(); | 42 ~DCLayerOverlay(); |
43 | 43 |
44 // State that is frequently shared between consecutive DCLayerOverlays. | 44 // State that is frequently shared between consecutive DCLayerOverlays. |
45 scoped_refptr<DCLayerOverlaySharedState> shared_state; | 45 scoped_refptr<DCLayerOverlaySharedState> shared_state; |
46 | 46 |
47 // Texture that corresponds to an IOSurface to set as the content of the | 47 // Resource ids that correspond to the DXGI textures to set as the contents |
48 // DCLayer. If this is 0 then the DCLayer is a solid color. | 48 // of the DCLayer. |
49 unsigned contents_resource_id = 0; | 49 DrawQuad::Resources resources; |
50 // The contents rect property for the DCLayer. | 50 // The contents rect property for the DCLayer. |
51 gfx::RectF contents_rect; | 51 gfx::RectF contents_rect; |
52 // The bounds for the DCLayer in pixels. | 52 // The bounds for the DCLayer in pixels. |
53 gfx::RectF bounds_rect; | 53 gfx::RectF bounds_rect; |
54 // The background color property for the DCLayer. | 54 // The background color property for the DCLayer. |
55 SkColor background_color = SK_ColorTRANSPARENT; | 55 SkColor background_color = SK_ColorTRANSPARENT; |
56 // The edge anti-aliasing mask property for the DCLayer. | 56 // The edge anti-aliasing mask property for the DCLayer. |
57 unsigned edge_aa_mask = 0; | 57 unsigned edge_aa_mask = 0; |
58 // The minification and magnification filters for the DCLayer. | 58 // The minification and magnification filters for the DCLayer. |
59 unsigned filter; | 59 unsigned filter; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 DCLayerOverlay* ca_layer_overlay); | 93 DCLayerOverlay* ca_layer_overlay); |
94 | 94 |
95 gfx::Rect previous_frame_underlay_rect_; | 95 gfx::Rect previous_frame_underlay_rect_; |
96 gfx::Rect previous_occlusion_bounding_box_; | 96 gfx::Rect previous_occlusion_bounding_box_; |
97 gfx::RectF previous_display_rect_; | 97 gfx::RectF previous_display_rect_; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace cc | 100 } // namespace cc |
101 | 101 |
102 #endif // CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 102 #endif // CC_OUTPUT_DC_LAYER_OVERLAY_H_ |
OLD | NEW |