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 "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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 typedef std::vector<CALayerOverlay> CALayerOverlayList; | 73 typedef std::vector<CALayerOverlay> CALayerOverlayList; |
74 | 74 |
75 // Returns true if all quads in the root render pass have been replaced by | 75 // Returns true if all quads in the root render pass have been replaced by |
76 // CALayerOverlays. | 76 // CALayerOverlays. |
77 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider, | 77 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider, |
78 const gfx::RectF& display_rect, | 78 const gfx::RectF& display_rect, |
79 const QuadList& quad_list, | 79 const QuadList& quad_list, |
80 CALayerOverlayList* ca_layer_overlays); | 80 CALayerOverlayList* ca_layer_overlays); |
81 | 81 |
82 // Allows RenderPassDrawQuads to be converted to CALayerOverlays. | |
83 void CC_EXPORT EnableRenderPassDrawQuadForTesting(); | |
84 | |
85 } // namespace cc | 82 } // namespace cc |
86 | 83 |
87 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_ | 84 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_ |
OLD | NEW |