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

Side by Side Diff: ui/gl/dc_renderer_layer_params.cc

Issue 2852953003: Use real colorspace for DirectComposition overlays.
Patch Set: rebase Created 3 years, 7 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
« cc/output/gl_renderer.cc ('K') | « ui/gl/dc_renderer_layer_params.h ('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 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( 11 DCRendererLayerParams::DCRendererLayerParams(
12 bool is_clipped, 12 bool is_clipped,
13 const gfx::Rect clip_rect, 13 const gfx::Rect clip_rect,
14 int z_order, 14 int z_order,
15 const gfx::Transform& transform, 15 const gfx::Transform& transform,
16 std::vector<scoped_refptr<gl::GLImage>> image, 16 std::vector<scoped_refptr<gl::GLImage>> image,
17 const gfx::RectF& contents_rect, 17 const gfx::RectF& contents_rect,
18 const gfx::Rect& rect, 18 const gfx::Rect& rect,
19 unsigned background_color, 19 unsigned background_color,
20 unsigned edge_aa_mask, 20 unsigned edge_aa_mask,
21 float opacity, 21 float opacity,
22 unsigned filter) 22 unsigned filter,
23 const gfx::ColorSpace& color_space)
23 : is_clipped(is_clipped), 24 : is_clipped(is_clipped),
24 clip_rect(clip_rect), 25 clip_rect(clip_rect),
25 z_order(z_order), 26 z_order(z_order),
26 transform(transform), 27 transform(transform),
27 image(image), 28 image(image),
28 contents_rect(contents_rect), 29 contents_rect(contents_rect),
29 rect(rect), 30 rect(rect),
30 background_color(background_color), 31 background_color(background_color),
31 edge_aa_mask(edge_aa_mask), 32 edge_aa_mask(edge_aa_mask),
32 opacity(opacity), 33 opacity(opacity),
33 filter(filter) {} 34 filter(filter),
35 color_space(color_space) {}
34 36
35 DCRendererLayerParams::DCRendererLayerParams( 37 DCRendererLayerParams::DCRendererLayerParams(
36 const DCRendererLayerParams& other) = default; 38 const DCRendererLayerParams& other) = default;
37 DCRendererLayerParams::~DCRendererLayerParams() = default; 39 DCRendererLayerParams::~DCRendererLayerParams() = default;
38 40
39 } // namespace ui 41 } // namespace ui
OLDNEW
« cc/output/gl_renderer.cc ('K') | « ui/gl/dc_renderer_layer_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698