OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 class GraphicsContext; | 40 class GraphicsContext; |
41 class SourceGraphic; | 41 class SourceGraphic; |
42 | 42 |
43 class PLATFORM_EXPORT SkiaImageFilterBuilder { | 43 class PLATFORM_EXPORT SkiaImageFilterBuilder { |
44 public: | 44 public: |
45 SkiaImageFilterBuilder(); | 45 SkiaImageFilterBuilder(); |
46 explicit SkiaImageFilterBuilder(GraphicsContext*); | 46 explicit SkiaImageFilterBuilder(GraphicsContext*); |
47 ~SkiaImageFilterBuilder(); | 47 ~SkiaImageFilterBuilder(); |
48 | 48 |
49 PassRefPtr<SkImageFilter> build(FilterEffect*, ColorSpace, bool requiresPMCo
lorValidation = true); | 49 PassRefPtr<SkImageFilter> build(FilterEffect*, ColorSpace, bool requiresPMCo
lorValidation = true); |
50 void buildFilterOperations(const FilterOperations&, blink::WebFilterOperatio
ns*); | 50 void buildFilterOperations(const FilterOperations&, WebFilterOperations*); |
51 PassRefPtr<SkImageFilter> buildTransform(const AffineTransform&, SkImageFilt
er* input); | 51 PassRefPtr<SkImageFilter> buildTransform(const AffineTransform&, SkImageFilt
er* input); |
52 | 52 |
53 PassRefPtr<SkImageFilter> transformColorSpace( | 53 PassRefPtr<SkImageFilter> transformColorSpace( |
54 SkImageFilter* input, ColorSpace srcColorSpace, ColorSpace dstColorSpace
); | 54 SkImageFilter* input, ColorSpace srcColorSpace, ColorSpace dstColorSpace
); |
55 | 55 |
56 void setCropOffset(const FloatSize& cropOffset) { m_cropOffset = cropOffset;
}; | 56 void setCropOffset(const FloatSize& cropOffset) { m_cropOffset = cropOffset;
}; |
57 FloatSize cropOffset() { return m_cropOffset; } | 57 FloatSize cropOffset() { return m_cropOffset; } |
58 | 58 |
59 void setSourceGraphic(SourceGraphic* sourceGraphic) { m_sourceGraphic = sour
ceGraphic; } | 59 void setSourceGraphic(SourceGraphic* sourceGraphic) { m_sourceGraphic = sour
ceGraphic; } |
60 SourceGraphic* sourceGraphic() { return m_sourceGraphic; } | 60 SourceGraphic* sourceGraphic() { return m_sourceGraphic; } |
61 | 61 |
62 GraphicsContext* context() { return m_context; } | 62 GraphicsContext* context() { return m_context; } |
63 | 63 |
64 private: | 64 private: |
65 FloatSize m_cropOffset; | 65 FloatSize m_cropOffset; |
66 GraphicsContext* m_context; | 66 GraphicsContext* m_context; |
67 SourceGraphic* m_sourceGraphic; | 67 SourceGraphic* m_sourceGraphic; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif | 72 #endif |
OLD | NEW |