Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: cc/output/ca_layer_overlay.h

Issue 2162193002: Add logic to GLRenderer to support RenderPassDrawQuad copying. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/output/direct_renderer.h » ('j') | cc/output/gl_renderer.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // The contents rect property for the CALayer. 55 // The contents rect property for the CALayer.
56 gfx::RectF contents_rect; 56 gfx::RectF contents_rect;
57 // The bounds for the CALayer in pixels. 57 // The bounds for the CALayer in pixels.
58 gfx::RectF bounds_rect; 58 gfx::RectF bounds_rect;
59 // The background color property for the CALayer. 59 // The background color property for the CALayer.
60 SkColor background_color = SK_ColorTRANSPARENT; 60 SkColor background_color = SK_ColorTRANSPARENT;
61 // The edge anti-aliasing mask property for the CALayer. 61 // The edge anti-aliasing mask property for the CALayer.
62 unsigned edge_aa_mask = 0; 62 unsigned edge_aa_mask = 0;
63 // The minification and magnification filters for the CALayer. 63 // The minification and magnification filters for the CALayer.
64 unsigned filter; 64 unsigned filter;
65
66 // If valid, the renderer must copy the contents of the render pass into an
67 // overlay resource to use as the contents.
68 RenderPassId render_pass_id;
65 }; 69 };
66 70
67 typedef std::vector<CALayerOverlay> CALayerOverlayList; 71 typedef std::vector<CALayerOverlay> CALayerOverlayList;
68 72
69 // Returns true if all quads in the root render pass have been replaced by 73 // Returns true if all quads in the root render pass have been replaced by
70 // CALayerOverlays. 74 // CALayerOverlays.
71 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider, 75 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider,
72 const gfx::RectF& display_rect, 76 const gfx::RectF& display_rect,
73 const QuadList& quad_list, 77 const QuadList& quad_list,
74 CALayerOverlayList* ca_layer_overlays); 78 CALayerOverlayList* ca_layer_overlays);
75 79
76 } // namespace cc 80 } // namespace cc
77 81
78 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_ 82 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/direct_renderer.h » ('j') | cc/output/gl_renderer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698