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

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

Issue 22258005: Upstreaming DropShadowImageFilter into skia, from Blink (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkColor.h"
9 #include "SkImageFilter.h"
10 #include "SkScalar.h"
11
12 class SkDropShadowImageFilter : public SkImageFilter {
13 public:
14 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor, S kImageFilter* input = 0);
Stephen White 2013/08/06 19:33:37 Nit: Use NULL instead of 0.
15 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
16
17 protected:
18 explicit SkDropShadowImageFilter(SkFlattenableReadBuffer&);
19 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
20 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const SkMatrix&, SkBitmap* result, SkIPoint* loc) SK_OVERRIDE;
21
22 private:
23 SkScalar fDx, fDy, fSigma;
24 SkColor fColor;
25 typedef SkImageFilter INHERITED;
26 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698