| OLD | NEW |
| 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 Loading... |
| 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); |
| OLD | NEW |