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

Side by Side Diff: gm/bitmappremul.cpp

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/bitmaprect.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 "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 public: 106 public:
107 BitmapPremulGM() { 107 BitmapPremulGM() {
108 this->setBGColor(SK_ColorWHITE); 108 this->setBGColor(SK_ColorWHITE);
109 } 109 }
110 110
111 protected: 111 protected:
112 SkString onShortName() SK_OVERRIDE { 112 SkString onShortName() SK_OVERRIDE {
113 return SkString("bitmap_premul"); 113 return SkString("bitmap_premul");
114 } 114 }
115 115
116 virtual SkISize onISize() SK_OVERRIDE { 116 SkISize onISize() SK_OVERRIDE {
117 return SkISize::Make(SLIDE_SIZE * 2, SLIDE_SIZE * 2); 117 return SkISize::Make(SLIDE_SIZE * 2, SLIDE_SIZE * 2);
118 } 118 }
119 119
120 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 120 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
121 SkScalar slideSize = SkIntToScalar(SLIDE_SIZE); 121 SkScalar slideSize = SkIntToScalar(SLIDE_SIZE);
122 canvas->drawBitmap(make_argb8888_gradient(), 0, 0); 122 canvas->drawBitmap(make_argb8888_gradient(), 0, 0);
123 canvas->drawBitmap(make_argb4444_gradient(), slideSize, 0); 123 canvas->drawBitmap(make_argb4444_gradient(), slideSize, 0);
124 canvas->drawBitmap(make_argb8888_stripes(), 0, slideSize); 124 canvas->drawBitmap(make_argb8888_stripes(), 0, slideSize);
125 canvas->drawBitmap(make_argb4444_stripes(), slideSize, slideSize); 125 canvas->drawBitmap(make_argb4444_stripes(), slideSize, slideSize);
126 } 126 }
127 127
128 private: 128 private:
129 typedef GM INHERITED; 129 typedef GM INHERITED;
130 }; 130 };
131 131
132 DEF_GM( return new BitmapPremulGM; ) 132 DEF_GM( return new BitmapPremulGM; )
133 } 133 }
OLDNEW
« no previous file with comments | « gm/bigtext.cpp ('k') | gm/bitmaprect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698