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

Unified Diff: ui/gl/ca_renderer_layer_params.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 | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/ca_renderer_layer_params.h
diff --git a/ui/gl/ca_renderer_layer_params.h b/ui/gl/ca_renderer_layer_params.h
index a6727b471384b5aadf25b21c6365a511e0ce67e5..ab046a2cc08d0c8283b60bb602811581c5916833 100644
--- a/ui/gl/ca_renderer_layer_params.h
+++ b/ui/gl/ca_renderer_layer_params.h
@@ -5,6 +5,10 @@
#ifndef UI_GL_CA_RENDERER_LAYER_PARAMS_H_
#define UI_GL_CA_RENDERER_LAYER_PARAMS_H_
+#include <vector>
+
+#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/transform.h"
@@ -42,6 +46,31 @@ struct GL_EXPORT CARendererLayerParams {
unsigned edge_aa_mask;
float opacity;
unsigned filter;
+
+ // This is a subset of cc::FilterOperation::FilterType.
+ enum class FilterEffectType : uint32_t {
+ GRAYSCALE,
+ SEPIA,
+ SATURATE,
+ HUE_ROTATE,
+ INVERT,
+ BRIGHTNESS,
+ CONTRAST,
+ OPACITY,
+ BLUR,
+ DROP_SHADOW,
+ };
+ struct GL_EXPORT FilterEffect {
+ FilterEffectType type = FilterEffectType::GRAYSCALE;
+
+ // For every filter other than DROP_SHADOW, only |amount| is populated.
+ float amount = 0;
+ gfx::Point drop_shadow_offset;
+ SkColor drop_shadow_color = 0;
+ };
+ using FilterEffects = std::vector<FilterEffect>;
+
+ FilterEffects filter_effects;
};
} // namespace ui
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698