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

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

Issue 2749023011: Add DirectComposition overlay support. (Closed)
Patch Set: remove skia usage in unit test Created 3 years, 8 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
« no previous file with comments | « 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"
8
7 namespace ui { 9 namespace ui {
8 10
9 DCRendererLayerParams::DCRendererLayerParams(bool is_clipped, 11 DCRendererLayerParams::DCRendererLayerParams(bool is_clipped,
10 const gfx::Rect clip_rect, 12 const gfx::Rect clip_rect,
11 unsigned sorting_context_id, 13 int z_order,
12 const gfx::Transform& transform, 14 const gfx::Transform& transform,
13 gl::GLImage* image, 15 gl::GLImage* image,
14 const gfx::RectF& contents_rect, 16 const gfx::RectF& contents_rect,
15 const gfx::Rect& rect, 17 const gfx::Rect& rect,
16 unsigned background_color, 18 unsigned background_color,
17 unsigned edge_aa_mask, 19 unsigned edge_aa_mask,
18 float opacity, 20 float opacity,
19 unsigned filter) 21 unsigned filter)
20 : is_clipped(is_clipped), 22 : is_clipped(is_clipped),
21 clip_rect(clip_rect), 23 clip_rect(clip_rect),
22 sorting_context_id(sorting_context_id), 24 z_order(z_order),
23 transform(transform), 25 transform(transform),
24 image(image), 26 image(image),
25 contents_rect(contents_rect), 27 contents_rect(contents_rect),
26 rect(rect), 28 rect(rect),
27 background_color(background_color), 29 background_color(background_color),
28 edge_aa_mask(edge_aa_mask), 30 edge_aa_mask(edge_aa_mask),
29 opacity(opacity), 31 opacity(opacity),
30 filter(filter) {} 32 filter(filter) {}
31 33
32 DCRendererLayerParams::DCRendererLayerParams( 34 DCRendererLayerParams::DCRendererLayerParams(
33 const DCRendererLayerParams& other) = default; 35 const DCRendererLayerParams& other) = default;
34 DCRendererLayerParams::~DCRendererLayerParams() = default; 36 DCRendererLayerParams::~DCRendererLayerParams() = default;
35 37
36 } // namespace ui 38 } // namespace ui
OLDNEW
« no previous file with comments | « 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