| 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 "SkBlurMask.h" | 9 #include "SkBlurMask.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, pain
t); | 484 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, pain
t); |
| 485 canvas->translate(0, SkIntToScalar(20)); | 485 canvas->translate(0, SkIntToScalar(20)); |
| 486 canvas->drawTextOnPath((void*) utf16simple, sizeof(utf16simple), path, &
matrix, paint); | 486 canvas->drawTextOnPath((void*) utf16simple, sizeof(utf16simple), path, &
matrix, paint); |
| 487 canvas->restore(); | 487 canvas->restore(); |
| 488 | 488 |
| 489 canvas->translate(0, SkIntToScalar(60)); | 489 canvas->translate(0, SkIntToScalar(60)); |
| 490 paint.setTextEncoding(SkPaint::kUTF8_TextEncoding); | 490 paint.setTextEncoding(SkPaint::kUTF8_TextEncoding); |
| 491 canvas->restore(); | 491 canvas->restore(); |
| 492 } | 492 } |
| 493 | 493 |
| 494 /* | |
| 495 ./SkColorFilter.h:25:class SkColorFilter : public SkFlattenable { -- abstract | |
| 496 static SkColorFilter* CreatXfermodeFilter() *** untested *** | |
| 497 static SkColorFilter* CreatePorterDuffFilter() *** untested *** | |
| 498 static SkColorFilter* CreateLightingFilter() -- tested | |
| 499 ./SkDrawLooper.h:9:class SkDrawLooper : public SkFlattenable { -- virtually abst
ract | |
| 500 ./SkBlurDrawLooper.h:9:class SkBlurDrawLooper : public SkDrawLooper { *** un
tested *** | |
| 501 ./SkMaskFilter.h:41:class SkMaskFilter : public SkFlattenable { -- abstract chmo
d +w .h | |
| 502 ./SkEmbossMaskFilter.h:27:class SkEmbossMaskFilter : public SkMaskFilter { -
- tested | |
| 503 ./SkPathEffect.h:33:class SkPathEffect : public SkFlattenable { -- abstract | |
| 504 ./Sk1DPathEffect.h:27:class Sk1DPathEffect : public SkPathEffect { -- abstra
ct | |
| 505 ./Sk1DPathEffect.h:48:class SkPath1DPathEffect : public Sk1DPathEffect {
-- tested | |
| 506 ./Sk2DPathEffect.h:25:class Sk2DPathEffect : public SkPathEffect { *** untes
ted *** | |
| 507 ./SkCornerPathEffect.h:28:class SkCornerPathEffect : public SkPathEffect { *
** untested *** | |
| 508 ./SkDashPathEffect.h:27:class SkDashPathEffect : public SkPathEffect { | |
| 509 ./SkDiscretePathEffect.h:27:class SkDiscretePathEffect : public SkPathEffect
{ | |
| 510 ./SkPaint.h:760:class SkStrokePathEffect : public SkPathEffect { | |
| 511 ./SkPathEffect.h:58:class SkPairPathEffect : public SkPathEffect { | |
| 512 ./SkPathEffect.h:78:class SkComposePathEffect : public SkPairPathEffect
{ | |
| 513 ./SkPathEffect.h:114:class SkSumPathEffect : public SkPairPathEffect { | |
| 514 ./SkRasterizer.h:29:class SkRasterizer : public SkFlattenable { | |
| 515 ./SkLayerRasterizer.h:27:class SkLayerRasterizer : public SkRasterizer { | |
| 516 ./SkShader.h:36:class SkShader : public SkFlattenable { | |
| 517 ./SkColorFilter.h:59:class SkFilterShader : public SkShader { | |
| 518 ./SkColorShader.h:26:class SkColorShader : public SkShader { | |
| 519 ./SkShaderExtras.h:31:class SkComposeShader : public SkShader { | |
| 520 ./SkTransparentShader.h:23:class SkTransparentShader : public SkShader { | |
| 521 ./SkUnitMapper.h:24:class SkUnitMapper : public SkFlattenable { | |
| 522 ./SkUnitMapper.h:33:class SkDiscreteMapper : public SkUnitMapper { | |
| 523 ./SkUnitMapper.h:51:class SkFlipCosineMapper : public SkUnitMapper { | |
| 524 ./SkXfermode.h:32:class SkXfermode : public SkFlattenable { | |
| 525 ./SkAvoidXfermode.h:28:class SkAvoidXfermode : public SkXfermode { *** not d
one *** chmod +w .h .cpp | |
| 526 ./SkXfermode.h:54:class SkProcXfermode : public SkXfermode { | |
| 527 */ | |
| 528 | |
| 529 /* | |
| 530 ./SkBlurMaskFilter.h:25:class SkBlurMaskFilter { | |
| 531 chmod +w SkBlurMaskFilter.cpp | |
| 532 ./SkGradientShader.h:30:class SkGradientShader { | |
| 533 */ | |
| 534 // save layer, bounder, looper | |
| 535 // matrix | |
| 536 // clip /path/region | |
| 537 // bitmap proc shader ? | |
| 538 | |
| 539 /* untested: | |
| 540 SkCornerPathEffect.h:28:class SkCornerPathEffect : public SkPathEffect { | |
| 541 */ | |
| 542 | |
| 543 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned m
odi) { | 494 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned m
odi) { |
| 544 fClickPt.set(x, y); | 495 fClickPt.set(x, y); |
| 545 this->inval(NULL); | 496 this->inval(NULL); |
| 546 return this->INHERITED::onFindClickHandler(x, y, modi); | 497 return this->INHERITED::onFindClickHandler(x, y, modi); |
| 547 } | 498 } |
| 548 | 499 |
| 549 SkPathEffect* pathEffectTest() { | 500 SkPathEffect* pathEffectTest() { |
| 550 static const int gXY[] = { 1, 0, 0, -1, 2, -1, 3, 0, 2, 1, 0, 1 }; | 501 static const int gXY[] = { 1, 0, 0, -1, 2, -1, 3, 0, 2, 1, 0, 1 }; |
| 551 SkScalar gPhase = 0; | 502 SkScalar gPhase = 0; |
| 552 SkPath path; | 503 SkPath path; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 private: | 598 private: |
| 648 SkPoint fClickPt; | 599 SkPoint fClickPt; |
| 649 SkBitmap fBug, fTb, fTx; | 600 SkBitmap fBug, fTb, fTx; |
| 650 typedef SampleView INHERITED; | 601 typedef SampleView INHERITED; |
| 651 }; | 602 }; |
| 652 | 603 |
| 653 ////////////////////////////////////////////////////////////////////////////// | 604 ////////////////////////////////////////////////////////////////////////////// |
| 654 | 605 |
| 655 static SkView* MyFactory() { return new DemoView; } | 606 static SkView* MyFactory() { return new DemoView; } |
| 656 static SkViewRegister reg(MyFactory); | 607 static SkViewRegister reg(MyFactory); |
| OLD | NEW |