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

Side by Side Diff: samplecode/SampleOvalTest.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 | « samplecode/SampleManyRects.cpp ('k') | samplecode/SamplePath.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 "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkView.h" 9 #include "SkView.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (fSize.fWidth < kLimit) { 93 if (fSize.fWidth < kLimit) {
94 SkDebugf("--- width=%g, flat=%d buldge=%d total: flat=%d buldge=%d\n ", fSize.fWidth, 94 SkDebugf("--- width=%g, flat=%d buldge=%d total: flat=%d buldge=%d\n ", fSize.fWidth,
95 flatCount, buldgeCount, gFlatCount, gBuldgeCount); 95 flatCount, buldgeCount, gFlatCount, gBuldgeCount);
96 fSize.fWidth += SK_Scalar1; 96 fSize.fWidth += SK_Scalar1;
97 fSize.fHeight += SK_Scalar1; 97 fSize.fHeight += SK_Scalar1;
98 } else { 98 } else {
99 // fSize.set(SK_Scalar1, SK_Scalar1); 99 // fSize.set(SK_Scalar1, SK_Scalar1);
100 } 100 }
101 } 101 }
102 102
103 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned) SK_OVERRIDE { 103 SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned) SK_OVERR IDE {
104 this->inval(NULL); 104 this->inval(NULL);
105 return NULL; 105 return NULL;
106 } 106 }
107 107
108 private: 108 private:
109 typedef SampleView INHERITED; 109 typedef SampleView INHERITED;
110 }; 110 };
111 111
112 /////////////////////////////////////////////////////////////////////////////// 112 ///////////////////////////////////////////////////////////////////////////////
113 113
114 static SkView* MyFactory() { return new OvalTestView; } 114 static SkView* MyFactory() { return new OvalTestView; }
115 static SkViewRegister reg(MyFactory); 115 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SampleManyRects.cpp ('k') | samplecode/SamplePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698