OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CA_LAYER_OVERLAY_H_ | 5 #ifndef CC_OUTPUT_CA_LAYER_OVERLAY_H_ |
6 #define CC_OUTPUT_CA_LAYER_OVERLAY_H_ | 6 #define CC_OUTPUT_CA_LAYER_OVERLAY_H_ |
7 | 7 |
8 #include "cc/quads/render_pass.h" | 8 #include "cc/quads/render_pass.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "third_party/skia/include/utils/SkMatrix44.h" | 10 #include "third_party/skia/include/utils/SkMatrix44.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // The opacity property for the CAayer. | 35 // The opacity property for the CAayer. |
36 float opacity = 1; | 36 float opacity = 1; |
37 // The background color property for the CALayer. | 37 // The background color property for the CALayer. |
38 SkColor background_color = SK_ColorTRANSPARENT; | 38 SkColor background_color = SK_ColorTRANSPARENT; |
39 // The edge anti-aliasing mask property for the CALayer. | 39 // The edge anti-aliasing mask property for the CALayer. |
40 unsigned edge_aa_mask = 0; | 40 unsigned edge_aa_mask = 0; |
41 // The bounds for the CALayer in pixels. | 41 // The bounds for the CALayer in pixels. |
42 gfx::RectF bounds_rect; | 42 gfx::RectF bounds_rect; |
43 // The transform to apply to the CALayer. | 43 // The transform to apply to the CALayer. |
44 SkMatrix44 transform = SkMatrix44(SkMatrix44::kIdentity_Constructor); | 44 SkMatrix44 transform = SkMatrix44(SkMatrix44::kIdentity_Constructor); |
| 45 // The minification and magnification filters for the CALayer. |
| 46 unsigned filter; |
45 }; | 47 }; |
46 | 48 |
47 typedef std::vector<CALayerOverlay> CALayerOverlayList; | 49 typedef std::vector<CALayerOverlay> CALayerOverlayList; |
48 | 50 |
49 // Returns true if all quads in the root render pass have been replaced by | 51 // Returns true if all quads in the root render pass have been replaced by |
50 // CALayerOverlays. | 52 // CALayerOverlays. |
51 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider, | 53 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider, |
52 const gfx::RectF& display_rect, | 54 const gfx::RectF& display_rect, |
53 const QuadList& quad_list, | 55 const QuadList& quad_list, |
54 CALayerOverlayList* ca_layer_overlays); | 56 CALayerOverlayList* ca_layer_overlays); |
55 | 57 |
56 } // namespace cc | 58 } // namespace cc |
57 | 59 |
58 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_ | 60 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_ |
OLD | NEW |