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

Side by Side Diff: gm/bitmapcopy.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags 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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 9
10 namespace skiagm { 10 namespace skiagm {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Draw destination bitmap 107 // Draw destination bitmap
108 canvas->translate(0, vertOffset); 108 canvas->translate(0, vertOffset);
109 x = (width - 40) / SkScalar(2); 109 x = (width - 40) / SkScalar(2);
110 canvas->drawBitmap(fDst[i], x, 0, &paint); 110 canvas->drawBitmap(fDst[i], x, 0, &paint);
111 canvas->restore(); 111 canvas->restore();
112 112
113 canvas->translate(horizOffset, 0); 113 canvas->translate(horizOffset, 0);
114 } 114 }
115 } 115 }
116 116
117 virtual uint32_t onGetFlags() const { return kSkipPicture_Flag
118 | kSkipPipe_Flag; }
119
120 private: 117 private:
121 typedef GM INHERITED; 118 typedef GM INHERITED;
122 }; 119 };
123 120
124 ////////////////////////////////////////////////////////////////////////////// 121 //////////////////////////////////////////////////////////////////////////////
125 122
126 static GM* MyFactory(void*) { return new BitmapCopyGM; } 123 static GM* MyFactory(void*) { return new BitmapCopyGM; }
127 static GMRegistry reg(MyFactory); 124 static GMRegistry reg(MyFactory);
128 } 125 }
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