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

Side by Side Diff: gm/bitmapmatrix.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « gm/bigtext.cpp ('k') | gm/bitmaprecttest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 "SkBlurMask.h" 10 #include "SkBlurMask.h"
11 #include "SkBlurMaskFilter.h" 11 #include "SkBlurMaskFilter.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "SkColor.h" 13 #include "SkColor.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkPath.h" 15 #include "SkPath.h"
16 #include "SkRect.h" 16 #include "SkRect.h"
17 #include "SkSize.h" 17 #include "SkSize.h"
18 #include "SkString.h" 18 #include "SkString.h"
19 19
20 namespace skiagm { 20 namespace skiagm {
21 21
22 class DrawBitmapMatrixGM : public GM { 22 class DrawBitmapMatrixGM : public GM {
23 public: 23 public:
24 DrawBitmapMatrixGM() {} 24 DrawBitmapMatrixGM() {}
25 25
26 protected: 26 protected:
27 virtual uint32_t onGetFlags() const SK_OVERRIDE {
28 return kSkipTiled_Flag;
29 }
30
27 virtual SkString onShortName() SK_OVERRIDE { 31 virtual SkString onShortName() SK_OVERRIDE {
28 return SkString("drawbitmapmatrix"); 32 return SkString("drawbitmapmatrix");
29 } 33 }
30 34
31 virtual SkISize onISize() SK_OVERRIDE { return make_isize(1024, 256); } 35 virtual SkISize onISize() SK_OVERRIDE { return make_isize(1024, 256); }
32 36
33 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 37 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
34 SkBitmap bm; 38 SkBitmap bm;
35 this->setupBitmap(&bm); 39 this->setupBitmap(&bm);
36 40
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 canvas.drawPath(path, paint); 126 canvas.drawPath(path, paint);
123 } 127 }
124 }; 128 };
125 129
126 //////////////////////////////////////////////////////////////////////////////// 130 ////////////////////////////////////////////////////////////////////////////////
127 131
128 static GM* MyFactory(void*) { return new DrawBitmapMatrixGM; } 132 static GM* MyFactory(void*) { return new DrawBitmapMatrixGM; }
129 static GMRegistry reg(MyFactory); 133 static GMRegistry reg(MyFactory);
130 134
131 } 135 }
OLDNEW
« no previous file with comments | « gm/bigtext.cpp ('k') | gm/bitmaprecttest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698