| OLD | NEW |
| (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_ | |
| OLD | NEW |