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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h

Issue 2357633003: Move buildFilterOperations to FilterEffectBuilder (Closed)
Patch Set: Fold toCompositorFilterOperations Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 18 matching lines...) Expand all
29 #include "platform/PlatformExport.h" 29 #include "platform/PlatformExport.h"
30 #include "platform/graphics/ColorSpace.h" 30 #include "platform/graphics/ColorSpace.h"
31 #include "third_party/skia/include/core/SkRefCnt.h" 31 #include "third_party/skia/include/core/SkRefCnt.h"
32 32
33 class SkImageFilter; 33 class SkImageFilter;
34 class SkPicture; 34 class SkPicture;
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class BoxReflection; 38 class BoxReflection;
39 class CompositorFilterOperations;
40 class FilterEffect; 39 class FilterEffect;
41 class FilterOperations;
42 40
43 namespace SkiaImageFilterBuilder { 41 namespace SkiaImageFilterBuilder {
44 42
45 PLATFORM_EXPORT sk_sp<SkImageFilter> build(FilterEffect*, ColorSpace, bool requi resPMColorValidation = true); 43 PLATFORM_EXPORT sk_sp<SkImageFilter> build(FilterEffect*, ColorSpace, bool requi resPMColorValidation = true);
46 PLATFORM_EXPORT CompositorFilterOperations buildFilterOperations(const FilterOpe rations&);
47 44
48 PLATFORM_EXPORT sk_sp<SkImageFilter> transformColorSpace( 45 PLATFORM_EXPORT sk_sp<SkImageFilter> transformColorSpace(
49 sk_sp<SkImageFilter> input, ColorSpace srcColorSpace, ColorSpace dstColorSpa ce); 46 sk_sp<SkImageFilter> input, ColorSpace srcColorSpace, ColorSpace dstColorSpa ce);
50 47
48 PLATFORM_EXPORT void populateSourceGraphicImageFilters(
49 FilterEffect* sourceGraphic, sk_sp<SkImageFilter> input, ColorSpace inputCol orSpace);
51 PLATFORM_EXPORT void buildSourceGraphic(FilterEffect*, sk_sp<SkPicture>); 50 PLATFORM_EXPORT void buildSourceGraphic(FilterEffect*, sk_sp<SkPicture>);
52 51
53 PLATFORM_EXPORT sk_sp<SkImageFilter> buildBoxReflectFilter(const BoxReflection&, sk_sp<SkImageFilter> input); 52 PLATFORM_EXPORT sk_sp<SkImageFilter> buildBoxReflectFilter(const BoxReflection&, sk_sp<SkImageFilter> input);
54 53
55 } // namespace SkiaImageFilterBuilder 54 } // namespace SkiaImageFilterBuilder
56 } // namespace blink 55 } // namespace blink
57 56
58 #endif 57 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698