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

Side by Side Diff: include/effects/SkLightingImageFilter.h

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Serialization with strings as ID Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The Android Open Source Project 2 * Copyright 2012 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef SkLightingImageFilter_DEFINED 9 #ifndef SkLightingImageFilter_DEFINED
10 #define SkLightingImageFilter_DEFINED 10 #define SkLightingImageFilter_DEFINED
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 65 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL);
66 static SkImageFilter* CreatePointLitSpecular(const SkPoint3& location, 66 static SkImageFilter* CreatePointLitSpecular(const SkPoint3& location,
67 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, 67 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
68 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 68 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL);
69 static SkImageFilter* CreateSpotLitSpecular(const SkPoint3& location, 69 static SkImageFilter* CreateSpotLitSpecular(const SkPoint3& location,
70 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, 70 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle,
71 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, 71 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
72 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL); 72 SkScalar shininess, SkImageFilter* input = NULL, const SkIRect* cropRect = NULL);
73 ~SkLightingImageFilter(); 73 ~SkLightingImageFilter();
74 74
75 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 75 SK_DECLARE_FLATTENABLE_GROUP_TYPE(SkLightingImageFilter)
76 76
77 protected: 77 protected:
78 SkLightingImageFilter(SkLight* light, 78 SkLightingImageFilter(SkLight* light,
79 SkScalar surfaceScale, 79 SkScalar surfaceScale,
80 SkImageFilter* input, 80 SkImageFilter* input,
81 const SkIRect* cropRect = NULL); 81 const SkIRect* cropRect = NULL);
82 explicit SkLightingImageFilter(SkFlattenableReadBuffer& buffer); 82 explicit SkLightingImageFilter(SkFlattenableReadBuffer& buffer);
83 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 83 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
84 const SkLight* light() const { return fLight; } 84 const SkLight* light() const { return fLight; }
85 SkScalar surfaceScale() const { return fSurfaceScale; } 85 SkScalar surfaceScale() const { return fSurfaceScale; }
86 86
87 private: 87 private:
88 typedef SkImageFilter INHERITED; 88 typedef SkImageFilter INHERITED;
89 SkLight* fLight; 89 SkLight* fLight;
90 SkScalar fSurfaceScale; 90 SkScalar fSurfaceScale;
91 }; 91 };
92 92
93 #endif 93 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698