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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 } | 376 } |
377 return this->INHERITED::onQuery(evt); | 377 return this->INHERITED::onQuery(evt); |
378 } | 378 } |
379 | 379 |
380 void drawBG(SkCanvas* canvas) { | 380 void drawBG(SkCanvas* canvas) { |
381 canvas->drawColor(0xFFDDDDDD); | 381 canvas->drawColor(0xFFDDDDDD); |
382 } | 382 } |
383 | 383 |
384 virtual void onDrawContent(SkCanvas* canvas) { | 384 virtual void onDrawContent(SkCanvas* canvas) { |
385 do_fuzz(canvas); | 385 do_fuzz(canvas); |
386 this->inval(NULL); | 386 this->inval(nullptr); |
387 } | 387 } |
388 | 388 |
389 private: | 389 private: |
390 typedef SkView INHERITED; | 390 typedef SkView INHERITED; |
391 }; | 391 }; |
392 | 392 |
393 ////////////////////////////////////////////////////////////////////////////// | 393 ////////////////////////////////////////////////////////////////////////////// |
394 | 394 |
395 static SkView* MyFactory() { return new FuzzView; } | 395 static SkView* MyFactory() { return new FuzzView; } |
396 static SkViewRegister reg(MyFactory); | 396 static SkViewRegister reg(MyFactory); |
OLD | NEW |