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

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

Issue 416273005: cc/output: cleanup: Remove unnecessary #includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « cc/output/program_binding.cc ('k') | cc/output/renderer_pixeltest.cc » ('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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h"
10 #include "cc/output/filter_operation.h" 9 #include "cc/output/filter_operation.h"
11 #include "cc/output/filter_operations.h" 10 #include "cc/output/filter_operations.h"
12 #include "skia/ext/refptr.h" 11 #include "skia/ext/refptr.h"
13 #include "third_party/skia/include/core/SkCanvas.h"
14 #include "third_party/skia/include/core/SkFlattenableBuffers.h"
15 #include "third_party/skia/include/core/SkImageFilter.h" 12 #include "third_party/skia/include/core/SkImageFilter.h"
16 #include "third_party/skia/include/effects/SkAlphaThresholdFilter.h" 13 #include "third_party/skia/include/effects/SkAlphaThresholdFilter.h"
17 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 14 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
18 #include "third_party/skia/include/effects/SkColorFilterImageFilter.h" 15 #include "third_party/skia/include/effects/SkColorFilterImageFilter.h"
19 #include "third_party/skia/include/effects/SkColorMatrixFilter.h" 16 #include "third_party/skia/include/effects/SkColorMatrixFilter.h"
20 #include "third_party/skia/include/effects/SkComposeImageFilter.h" 17 #include "third_party/skia/include/effects/SkComposeImageFilter.h"
21 #include "third_party/skia/include/effects/SkDropShadowImageFilter.h" 18 #include "third_party/skia/include/effects/SkDropShadowImageFilter.h"
22 #include "third_party/skia/include/effects/SkMagnifierImageFilter.h" 19 #include "third_party/skia/include/effects/SkMagnifierImageFilter.h"
23 #include "third_party/skia/include/effects/SkRectShaderImageFilter.h" 20 #include "third_party/skia/include/effects/SkRectShaderImageFilter.h"
24 #include "third_party/skia/include/gpu/SkGpuDevice.h" 21 #include "ui/gfx/geometry/size_f.h"
25 #include "third_party/skia/include/gpu/SkGrPixelRef.h"
26 #include "ui/gfx/size_f.h"
27 22
28 namespace cc { 23 namespace cc {
29 24
30 namespace { 25 namespace {
31 26
32 void GetBrightnessMatrix(float amount, SkScalar matrix[20]) { 27 void GetBrightnessMatrix(float amount, SkScalar matrix[20]) {
33 // Spec implementation 28 // Spec implementation
34 // (http://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#brightnessEquiv alent) 29 // (http://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#brightnessEquiv alent)
35 // <feFunc[R|G|B] type="linear" slope="[amount]"> 30 // <feFunc[R|G|B] type="linear" slope="[amount]">
36 memset(matrix, 0, 20 * sizeof(SkScalar)); 31 memset(matrix, 0, 20 * sizeof(SkScalar));
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 image_filter = alpha_filter; 269 image_filter = alpha_filter;
275 } 270 }
276 break; 271 break;
277 } 272 }
278 } 273 }
279 } 274 }
280 return image_filter; 275 return image_filter;
281 } 276 }
282 277
283 } // namespace cc 278 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/program_binding.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698