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

Side by Side Diff: gm/spritebitmap.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/skbug1719.cpp ('k') | gm/stringart.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
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 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkBlurImageFilter.h" 10 #include "SkBlurImageFilter.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 /** 57 /**
58 * Compare output of drawSprite and drawBitmap (esp. clipping and imagefilters) 58 * Compare output of drawSprite and drawBitmap (esp. clipping and imagefilters)
59 */ 59 */
60 class SpriteBitmapGM : public skiagm::GM { 60 class SpriteBitmapGM : public skiagm::GM {
61 public: 61 public:
62 SpriteBitmapGM() {} 62 SpriteBitmapGM() {}
63 63
64 protected: 64 protected:
65 virtual uint32_t onGetFlags() const SK_OVERRIDE {
66 return kSkipTiled_Flag;
67 }
68
65 virtual SkString onShortName() { 69 virtual SkString onShortName() {
66 return SkString("spritebitmap"); 70 return SkString("spritebitmap");
67 } 71 }
68 72
69 virtual SkISize onISize() { 73 virtual SkISize onISize() {
70 return SkISize::Make(640, 480); 74 return SkISize::Make(640, 480);
71 } 75 }
72 76
73 virtual void onDraw(SkCanvas* canvas) { 77 virtual void onDraw(SkCanvas* canvas) {
74 SkBitmap bm; 78 SkBitmap bm;
(...skipping 14 matching lines...) Expand all
89 draw_2_bitmaps(canvas, bm, true, dx, dy, filter); 93 draw_2_bitmaps(canvas, bm, true, dx, dy, filter);
90 } 94 }
91 95
92 private: 96 private:
93 typedef GM INHERITED; 97 typedef GM INHERITED;
94 }; 98 };
95 99
96 ////////////////////////////////////////////////////////////////////////////// 100 //////////////////////////////////////////////////////////////////////////////
97 101
98 DEF_GM( return new SpriteBitmapGM; ) 102 DEF_GM( return new SpriteBitmapGM; )
OLDNEW
« no previous file with comments | « gm/skbug1719.cpp ('k') | gm/stringart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698