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

Side by Side Diff: tools/debugger/SkDrawCommand.h

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: made req changes Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SKDRAWCOMMAND_H_ 8 #ifndef SKDRAWCOMMAND_H_
9 #define SKDRAWCOMMAND_H_ 9 #define SKDRAWCOMMAND_H_
10 10
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 void execute(SkCanvas* canvas) const override; 452 void execute(SkCanvas* canvas) const override;
453 453
454 private: 454 private:
455 bool fRestore; 455 bool fRestore;
456 456
457 typedef SkDrawCommand INHERITED; 457 typedef SkDrawCommand INHERITED;
458 }; 458 };
459 459
460 class SkBeginDrawShadowedPictureCommand : public SkDrawCommand { 460 class SkBeginDrawShadowedPictureCommand : public SkDrawCommand {
461 public: 461 public:
462 // sType is not needed because paint holds the shader that holds the sType i nfo.
462 SkBeginDrawShadowedPictureCommand(const SkPicture* picture, 463 SkBeginDrawShadowedPictureCommand(const SkPicture* picture,
463 const SkMatrix* matrix, 464 const SkMatrix* matrix,
464 const SkPaint* paint); 465 const SkPaint* paint);
465 466
466 void execute(SkCanvas* canvas) const override; 467 void execute(SkCanvas* canvas) const override;
467 bool render(SkCanvas* canvas) const override; 468 bool render(SkCanvas* canvas) const override;
468 469
469 private: 470 private:
470 SkAutoTUnref<const SkPicture> fPicture; 471 SkAutoTUnref<const SkPicture> fPicture;
471 SkTLazy<SkMatrix> fMatrix; 472 SkTLazy<SkMatrix> fMatrix;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 void execute(SkCanvas* canvas) const override; 771 void execute(SkCanvas* canvas) const override;
771 Json::Value toJSON(UrlDataManager& urlDataManager) const override; 772 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
772 static SkTranslateZCommand* fromJSON(Json::Value& command, UrlDataManager& u rlDataManager); 773 static SkTranslateZCommand* fromJSON(Json::Value& command, UrlDataManager& u rlDataManager);
773 774
774 private: 775 private:
775 SkScalar fZTranslate; 776 SkScalar fZTranslate;
776 777
777 typedef SkDrawCommand INHERITED; 778 typedef SkDrawCommand INHERITED;
778 }; 779 };
779 #endif 780 #endif
OLDNEW
« src/utils/SkShadowPaintFilterCanvas.cpp ('K') | « tools/debugger/SkDebugCanvas.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698