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

Side by Side Diff: gm/xfermodes3.cpp

Issue 22918012: Add luminance mask transfer modes. (Closed) Base URL: https://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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkGradientShader.h" 10 #include "SkGradientShader.h"
(...skipping 14 matching lines...) Expand all
25 class Xfermodes3GM : public GM { 25 class Xfermodes3GM : public GM {
26 public: 26 public:
27 Xfermodes3GM() {} 27 Xfermodes3GM() {}
28 28
29 protected: 29 protected:
30 virtual SkString onShortName() SK_OVERRIDE { 30 virtual SkString onShortName() SK_OVERRIDE {
31 return SkString("xfermodes3"); 31 return SkString("xfermodes3");
32 } 32 }
33 33
34 virtual SkISize onISize() SK_OVERRIDE { 34 virtual SkISize onISize() SK_OVERRIDE {
35 return make_isize(630, 1215); 35 return make_isize(630, 1275);
36 } 36 }
37 37
38 virtual void onDrawBackground(SkCanvas* canvas) SK_OVERRIDE { 38 virtual void onDrawBackground(SkCanvas* canvas) SK_OVERRIDE {
39 SkPaint bgPaint; 39 SkPaint bgPaint;
40 bgPaint.setColor(0xFF70D0E0); 40 bgPaint.setColor(0xFF70D0E0);
41 canvas->drawPaint(bgPaint); 41 canvas->drawPaint(bgPaint);
42 } 42 }
43 43
44 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 44 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
45 canvas->translate(SkIntToScalar(10), SkIntToScalar(20)); 45 canvas->translate(SkIntToScalar(10), SkIntToScalar(20));
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 SkAutoTUnref<SkShader> fBmpShader; 237 SkAutoTUnref<SkShader> fBmpShader;
238 238
239 typedef GM INHERITED; 239 typedef GM INHERITED;
240 }; 240 };
241 241
242 ////////////////////////////////////////////////////////////////////////////// 242 //////////////////////////////////////////////////////////////////////////////
243 243
244 DEF_GM(return new Xfermodes3GM;) 244 DEF_GM(return new Xfermodes3GM;)
245 245
246 } 246 }
OLDNEW
« no previous file with comments | « gm/xfermodes2.cpp ('k') | include/core/SkXfermode.h » ('j') | include/core/SkXfermode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698