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

Unified Diff: cc/output/ca_layer_overlay.h

Issue 2164613003: Add logic to convert from RenderPassDrawQuads to CALayerOverlays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp41_rpdq_converter
Patch Set: Compile errors. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/output/ca_layer_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/ca_layer_overlay.h
diff --git a/cc/output/ca_layer_overlay.h b/cc/output/ca_layer_overlay.h
index e26145c93f48f514793bdc18f8d17f0a78851f80..e64f0d97f4457bf18a6a20882ec9873731e80a94 100644
--- a/cc/output/ca_layer_overlay.h
+++ b/cc/output/ca_layer_overlay.h
@@ -10,6 +10,7 @@
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkMatrix44.h"
#include "ui/gfx/geometry/rect_f.h"
+#include "ui/gl/ca_renderer_layer_params.h"
namespace cc {
@@ -62,6 +63,11 @@ class CC_EXPORT CALayerOverlay {
unsigned edge_aa_mask = 0;
// The minification and magnification filters for the CALayer.
unsigned filter;
+
+ // If valid, the renderer must copy the contents of the render pass into an
+ // overlay resource to use as the contents.
+ RenderPassId render_pass_id;
+ ui::CARendererLayerParams::FilterEffects filter_effects;
};
typedef std::vector<CALayerOverlay> CALayerOverlayList;
@@ -73,6 +79,9 @@ bool ProcessForCALayerOverlays(ResourceProvider* resource_provider,
const QuadList& quad_list,
CALayerOverlayList* ca_layer_overlays);
+// Allows RenderPassDrawQuads to be converted to CALayerOverlays.
+void CC_EXPORT EnableRenderPassDrawQuadForTesting();
+
} // namespace cc
#endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_
« no previous file with comments | « no previous file | cc/output/ca_layer_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698