OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "ui/gl/dc_renderer_layer_params.h" | 5 #include "ui/gl/dc_renderer_layer_params.h" |
6 | 6 |
7 #include "ui/gl/gl_image.h" | 7 #include "ui/gl/gl_image.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
11 DCRendererLayerParams::DCRendererLayerParams(bool is_clipped, | 11 DCRendererLayerParams::DCRendererLayerParams( |
12 const gfx::Rect clip_rect, | 12 bool is_clipped, |
13 int z_order, | 13 const gfx::Rect clip_rect, |
14 const gfx::Transform& transform, | 14 int z_order, |
15 gl::GLImage* image, | 15 const gfx::Transform& transform, |
16 const gfx::RectF& contents_rect, | 16 std::vector<scoped_refptr<gl::GLImage>> image, |
17 const gfx::Rect& rect, | 17 const gfx::RectF& contents_rect, |
18 unsigned background_color, | 18 const gfx::Rect& rect, |
19 unsigned edge_aa_mask, | 19 unsigned background_color, |
20 float opacity, | 20 unsigned edge_aa_mask, |
21 unsigned filter) | 21 float opacity, |
| 22 unsigned filter) |
22 : is_clipped(is_clipped), | 23 : is_clipped(is_clipped), |
23 clip_rect(clip_rect), | 24 clip_rect(clip_rect), |
24 z_order(z_order), | 25 z_order(z_order), |
25 transform(transform), | 26 transform(transform), |
26 image(image), | 27 image(image), |
27 contents_rect(contents_rect), | 28 contents_rect(contents_rect), |
28 rect(rect), | 29 rect(rect), |
29 background_color(background_color), | 30 background_color(background_color), |
30 edge_aa_mask(edge_aa_mask), | 31 edge_aa_mask(edge_aa_mask), |
31 opacity(opacity), | 32 opacity(opacity), |
32 filter(filter) {} | 33 filter(filter) {} |
33 | 34 |
34 DCRendererLayerParams::DCRendererLayerParams( | 35 DCRendererLayerParams::DCRendererLayerParams( |
35 const DCRendererLayerParams& other) = default; | 36 const DCRendererLayerParams& other) = default; |
36 DCRendererLayerParams::~DCRendererLayerParams() = default; | 37 DCRendererLayerParams::~DCRendererLayerParams() = default; |
37 | 38 |
38 } // namespace ui | 39 } // namespace ui |
OLD | NEW |