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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UI_GL_CA_RENDERER_LAYER_PARAMS_H_ 5 #ifndef UI_GL_CA_RENDERER_LAYER_PARAMS_H_
6 #define UI_GL_CA_RENDERER_LAYER_PARAMS_H_ 6 #define UI_GL_CA_RENDERER_LAYER_PARAMS_H_
7 7
8 #include <vector>
9
10 #include "third_party/skia/include/core/SkColor.h"
11 #include "ui/gfx/geometry/point.h"
8 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
9 #include "ui/gfx/geometry/rect_f.h" 13 #include "ui/gfx/geometry/rect_f.h"
10 #include "ui/gfx/transform.h" 14 #include "ui/gfx/transform.h"
11 #include "ui/gl/gl_export.h" 15 #include "ui/gl/gl_export.h"
12 16
13 namespace gl { 17 namespace gl {
14 class GLImage; 18 class GLImage;
15 } 19 }
16 20
17 namespace ui { 21 namespace ui {
(...skipping 17 matching lines...) Expand all
35 const gfx::Rect clip_rect; 39 const gfx::Rect clip_rect;
36 unsigned sorting_context_id; 40 unsigned sorting_context_id;
37 const gfx::Transform transform; 41 const gfx::Transform transform;
38 gl::GLImage* image; 42 gl::GLImage* image;
39 const gfx::RectF contents_rect; 43 const gfx::RectF contents_rect;
40 const gfx::Rect rect; 44 const gfx::Rect rect;
41 unsigned background_color; 45 unsigned background_color;
42 unsigned edge_aa_mask; 46 unsigned edge_aa_mask;
43 float opacity; 47 float opacity;
44 unsigned filter; 48 unsigned filter;
49
50 // This is a subset of cc::FilterOperation::FilterType.
51 enum class FilterEffectType : uint32_t {
52 GRAYSCALE,
53 SEPIA,
54 SATURATE,
55 HUE_ROTATE,
56 INVERT,
57 BRIGHTNESS,
58 CONTRAST,
59 OPACITY,
60 BLUR,
61 DROP_SHADOW,
62 };
63 struct GL_EXPORT FilterEffect {
64 FilterEffectType type = FilterEffectType::GRAYSCALE;
65
66 // For every filter other than DROP_SHADOW, only |amount| is populated.
67 float amount = 0;
68 gfx::Point drop_shadow_offset;
69 SkColor drop_shadow_color = 0;
70 };
71 using FilterEffects = std::vector<FilterEffect>;
72
73 FilterEffects filter_effects;
45 }; 74 };
46 75
47 } // namespace ui 76 } // namespace ui
48 77
49 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_ 78 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_
OLDNEW
« 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