| OLD | NEW |
| 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 "ui/gfx/geometry/rect.h" | 8 #include "ui/gfx/geometry/rect.h" |
| 9 #include "ui/gfx/geometry/rect_f.h" | 9 #include "ui/gfx/geometry/rect_f.h" |
| 10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
| 11 #include "ui/gl/gl_export.h" | 11 #include "ui/gl/gl_export.h" |
| 12 | 12 |
| 13 namespace gl { | 13 namespace gl { |
| 14 class GLImage; | 14 class GLImage; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 struct GL_EXPORT CARendererLayerParams { | 19 struct GL_EXPORT CARendererLayerParams { |
| 20 CARendererLayerParams(bool is_clipped, | 20 CARendererLayerParams(bool is_clipped, |
| 21 const gfx::Rect clip_rect, | 21 const gfx::Rect clip_rect, |
| 22 unsigned sorting_context_id, | 22 unsigned sorting_context_id, |
| 23 const gfx::Transform transform, | 23 const gfx::Transform& transform, |
| 24 gl::GLImage* image, | 24 gl::GLImage* image, |
| 25 const gfx::RectF contents_rect, | 25 const gfx::RectF& contents_rect, |
| 26 const gfx::Rect rect, | 26 const gfx::Rect& rect, |
| 27 unsigned background_color, | 27 unsigned background_color, |
| 28 unsigned edge_aa_mask, | 28 unsigned edge_aa_mask, |
| 29 float opacity, | 29 float opacity, |
| 30 unsigned filter); | 30 unsigned filter); |
| 31 CARendererLayerParams(const CARendererLayerParams& other); | 31 CARendererLayerParams(const CARendererLayerParams& other); |
| 32 ~CARendererLayerParams(); | 32 ~CARendererLayerParams(); |
| 33 | 33 |
| 34 bool is_clipped; | 34 bool is_clipped; |
| 35 const gfx::Rect clip_rect; | 35 const gfx::Rect clip_rect; |
| 36 unsigned sorting_context_id; | 36 unsigned sorting_context_id; |
| 37 const gfx::Transform transform; | 37 const gfx::Transform transform; |
| 38 gl::GLImage* image; | 38 gl::GLImage* image; |
| 39 const gfx::RectF contents_rect; | 39 const gfx::RectF contents_rect; |
| 40 const gfx::Rect rect; | 40 const gfx::Rect rect; |
| 41 unsigned background_color; | 41 unsigned background_color; |
| 42 unsigned edge_aa_mask; | 42 unsigned edge_aa_mask; |
| 43 float opacity; | 43 float opacity; |
| 44 unsigned filter; | 44 unsigned filter; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace ui | 47 } // namespace ui |
| 48 | 48 |
| 49 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_ | 49 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_ |
| OLD | NEW |