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

Side by Side Diff: ui/gl/ca_renderer_layer_params.h

Issue 2006923006: Move all CARendererLayerTree parameters to separate struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_GL_CA_RENDERER_LAYER_PARAMS_H_
6 #define UI_GL_CA_RENDERER_LAYER_PARAMS_H_
7
8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/gfx/geometry/rect_f.h"
10 #include "ui/gfx/transform.h"
11 #include "ui/gl/gl_export.h"
12
13 namespace gl {
14 class GLImage;
15 }
16
17 namespace ui {
18
19 struct GL_EXPORT CARendererLayerParams {
20 CARendererLayerParams(bool is_clipped,
21 const gfx::Rect clip_rect,
22 unsigned sorting_context_id,
23 const gfx::Transform transform,
24 gl::GLImage* image,
25 const gfx::RectF contents_rect,
26 const gfx::Rect rect,
27 unsigned background_color,
28 unsigned edge_aa_mask,
29 float opacity,
30 unsigned filter);
31 CARendererLayerParams(const CARendererLayerParams& other);
32 ~CARendererLayerParams();
33
34 bool is_clipped;
35 const gfx::Rect clip_rect;
36 unsigned sorting_context_id;
37 const gfx::Transform transform;
38 gl::GLImage* image;
39 const gfx::RectF contents_rect;
40 const gfx::Rect rect;
41 unsigned background_color;
42 unsigned edge_aa_mask;
43 float opacity;
44 unsigned filter;
45 };
46
47 } // namespace ui
48
49 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698