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

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: Fixing comments 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_REGISTRAR_GROUP()
76 SK_DEFINE_FLATTENABLE_TYPE_CHECKING_PROCS(SkLightingImageFilter)
76 77
77 protected: 78 protected:
78 SkLightingImageFilter(SkLight* light, 79 SkLightingImageFilter(SkLight* light,
79 SkScalar surfaceScale, 80 SkScalar surfaceScale,
80 SkImageFilter* input, 81 SkImageFilter* input,
81 const SkIRect* cropRect = NULL); 82 const SkIRect* cropRect = NULL);
82 explicit SkLightingImageFilter(SkFlattenableReadBuffer& buffer); 83 explicit SkLightingImageFilter(SkFlattenableReadBuffer& buffer);
83 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 84 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
84 const SkLight* light() const { return fLight; } 85 const SkLight* light() const { return fLight; }
85 SkScalar surfaceScale() const { return fSurfaceScale; } 86 SkScalar surfaceScale() const { return fSurfaceScale; }
86 87
87 private: 88 private:
88 typedef SkImageFilter INHERITED; 89 typedef SkImageFilter INHERITED;
89 SkLight* fLight; 90 SkLight* fLight;
90 SkScalar fSurfaceScale; 91 SkScalar fSurfaceScale;
91 }; 92 };
92 93
93 #endif 94 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698