| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 60 // If |rpdq| is present, then the renderer must draw the filter effects and | 60 // If |rpdq| is present, then the renderer must draw the filter effects and |
| 61 // copy the result into an IOSurface. | 61 // copy the result into an IOSurface. |
| 62 const RenderPassDrawQuad* rpdq = nullptr; | 62 const RenderPassDrawQuad* rpdq = nullptr; |
| 63 |
| 64 gfx::ColorSpace color_space; |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 typedef std::vector<DCLayerOverlay> DCLayerOverlayList; | 67 typedef std::vector<DCLayerOverlay> DCLayerOverlayList; |
| 66 | 68 |
| 67 class DCLayerOverlayProcessor { | 69 class DCLayerOverlayProcessor { |
| 68 public: | 70 public: |
| 69 enum DCLayerResult { | 71 enum DCLayerResult { |
| 70 DC_LAYER_SUCCESS, | 72 DC_LAYER_SUCCESS, |
| 71 DC_LAYER_FAILED_QUAD_BLEND_MODE, | 73 DC_LAYER_FAILED_QUAD_BLEND_MODE, |
| 72 DC_LAYER_FAILED_TEXTURE_NOT_CANDIDATE, | 74 DC_LAYER_FAILED_TEXTURE_NOT_CANDIDATE, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 93 DCLayerOverlay* ca_layer_overlay); | 95 DCLayerOverlay* ca_layer_overlay); |
| 94 | 96 |
| 95 gfx::Rect previous_frame_underlay_rect_; | 97 gfx::Rect previous_frame_underlay_rect_; |
| 96 gfx::Rect previous_occlusion_bounding_box_; | 98 gfx::Rect previous_occlusion_bounding_box_; |
| 97 gfx::RectF previous_display_rect_; | 99 gfx::RectF previous_display_rect_; |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 } // namespace cc | 102 } // namespace cc |
| 101 | 103 |
| 102 #endif // CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 104 #endif // CC_OUTPUT_DC_LAYER_OVERLAY_H_ |
| OLD | NEW |