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

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

Issue 2335253002: Push CompositorFilterOperations creation out of GraphicsLayer (Closed)
Patch Set: The right FilterOperations Created 4 years, 3 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 17 matching lines...) Expand all
28 28
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 AffineTransform;
39 class BoxReflection; 38 class BoxReflection;
40 class CompositorFilterOperations; 39 class CompositorFilterOperations;
41 class FilterEffect; 40 class FilterEffect;
42 class FilterOperations; 41 class FilterOperations;
43 class Image;
44 42
45 namespace SkiaImageFilterBuilder { 43 namespace SkiaImageFilterBuilder {
46 44
47 PLATFORM_EXPORT sk_sp<SkImageFilter> build(FilterEffect*, ColorSpace, bool requi resPMColorValidation = true); 45 PLATFORM_EXPORT sk_sp<SkImageFilter> build(FilterEffect*, ColorSpace, bool requi resPMColorValidation = true);
48 PLATFORM_EXPORT void buildFilterOperations(const FilterOperations&, CompositorFi lterOperations*); 46 PLATFORM_EXPORT CompositorFilterOperations buildFilterOperations(const FilterOpe rations&);
Stephen White 2016/09/16 14:05:59 Does this mean we'll be incurring the copy constru
fs 2016/09/16 14:54:38 I could be wrong, but I think this would RVO. Empi
49 PLATFORM_EXPORT sk_sp<SkImageFilter> buildTransform(const AffineTransform&, sk_s p<SkImageFilter> input);
50 47
51 PLATFORM_EXPORT sk_sp<SkImageFilter> transformColorSpace( 48 PLATFORM_EXPORT sk_sp<SkImageFilter> transformColorSpace(
52 sk_sp<SkImageFilter> input, ColorSpace srcColorSpace, ColorSpace dstColorSpa ce); 49 sk_sp<SkImageFilter> input, ColorSpace srcColorSpace, ColorSpace dstColorSpa ce);
53 50
54 PLATFORM_EXPORT void buildSourceGraphic(FilterEffect*, sk_sp<SkPicture>); 51 PLATFORM_EXPORT void buildSourceGraphic(FilterEffect*, sk_sp<SkPicture>);
55 52
56 PLATFORM_EXPORT sk_sp<SkImageFilter> buildBoxReflectFilter(const BoxReflection&, sk_sp<SkImageFilter> input); 53 PLATFORM_EXPORT sk_sp<SkImageFilter> buildBoxReflectFilter(const BoxReflection&, sk_sp<SkImageFilter> input);
57 54
58 } // namespace SkiaImageFilterBuilder 55 } // namespace SkiaImageFilterBuilder
59 } // namespace blink 56 } // namespace blink
60 57
61 #endif 58 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698