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

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

Issue 2186693002: Implement filter effects in Core Animation using CAFilters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp50_base
Patch Set: Comments from piman. Created 4 years, 4 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/ca_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 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 #include "ui/gl/ca_renderer_layer_params.h" 5 #include "ui/gl/ca_renderer_layer_params.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 CARendererLayerParams::CARendererLayerParams(bool is_clipped, 9 CARendererLayerParams::CARendererLayerParams(bool is_clipped,
10 const gfx::Rect clip_rect, 10 const gfx::Rect clip_rect,
(...skipping 15 matching lines...) Expand all
26 rect(rect), 26 rect(rect),
27 background_color(background_color), 27 background_color(background_color),
28 edge_aa_mask(edge_aa_mask), 28 edge_aa_mask(edge_aa_mask),
29 opacity(opacity), 29 opacity(opacity),
30 filter(filter) {} 30 filter(filter) {}
31 31
32 CARendererLayerParams::CARendererLayerParams( 32 CARendererLayerParams::CARendererLayerParams(
33 const CARendererLayerParams& other) = default; 33 const CARendererLayerParams& other) = default;
34 CARendererLayerParams::~CARendererLayerParams() = default; 34 CARendererLayerParams::~CARendererLayerParams() = default;
35 35
36 bool CARendererLayerParams::FilterEffect::operator==(
37 const FilterEffect& rhs) const {
38 return type == rhs.type && amount == rhs.amount &&
39 drop_shadow_offset == rhs.drop_shadow_offset &&
40 drop_shadow_color == rhs.drop_shadow_color;
41 }
42
36 } // namespace ui 43 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gl/ca_renderer_layer_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698