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

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

Issue 464273002: Cleanup namespace usage in platform/graphics/[filters/* to skia/*] and platform/graphics/[B-D]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 29 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/ReferenceFilter.h ('k') | Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698