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

Side by Side Diff: cc/output/render_surface_filters.cc

Issue 1579993003: Use SkPaintImageFilter instead of SkRectShaderImageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/output/render_surface_filters.h" 5 #include "cc/output/render_surface_filters.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "cc/output/filter_operation.h" 11 #include "cc/output/filter_operation.h"
12 #include "cc/output/filter_operations.h" 12 #include "cc/output/filter_operations.h"
13 #include "skia/ext/refptr.h" 13 #include "skia/ext/refptr.h"
14 #include "third_party/skia/include/core/SkImageFilter.h" 14 #include "third_party/skia/include/core/SkImageFilter.h"
15 #include "third_party/skia/include/effects/SkAlphaThresholdFilter.h" 15 #include "third_party/skia/include/effects/SkAlphaThresholdFilter.h"
16 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 16 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
17 #include "third_party/skia/include/effects/SkColorFilterImageFilter.h" 17 #include "third_party/skia/include/effects/SkColorFilterImageFilter.h"
18 #include "third_party/skia/include/effects/SkColorMatrixFilter.h" 18 #include "third_party/skia/include/effects/SkColorMatrixFilter.h"
19 #include "third_party/skia/include/effects/SkComposeImageFilter.h" 19 #include "third_party/skia/include/effects/SkComposeImageFilter.h"
20 #include "third_party/skia/include/effects/SkDropShadowImageFilter.h" 20 #include "third_party/skia/include/effects/SkDropShadowImageFilter.h"
21 #include "third_party/skia/include/effects/SkMagnifierImageFilter.h" 21 #include "third_party/skia/include/effects/SkMagnifierImageFilter.h"
22 #include "third_party/skia/include/effects/SkRectShaderImageFilter.h"
23 #include "ui/gfx/geometry/size_f.h" 22 #include "ui/gfx/geometry/size_f.h"
24 23
25 namespace cc { 24 namespace cc {
26 25
27 namespace { 26 namespace {
28 27
29 void GetBrightnessMatrix(float amount, SkScalar matrix[20]) { 28 void GetBrightnessMatrix(float amount, SkScalar matrix[20]) {
30 // Spec implementation 29 // Spec implementation
31 // (http://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#brightnessEquiv alent) 30 // (http://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#brightnessEquiv alent)
32 // <feFunc[R|G|B] type="linear" slope="[amount]"> 31 // <feFunc[R|G|B] type="linear" slope="[amount]">
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 image_filter = alpha_filter; 271 image_filter = alpha_filter;
273 } 272 }
274 break; 273 break;
275 } 274 }
276 } 275 }
277 } 276 }
278 return image_filter; 277 return image_filter;
279 } 278 }
280 279
281 } // namespace cc 280 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698