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

Side by Side Diff: src/utils/debugger/SkDrawCommand.h

Issue 523833003: Debugger render support for SkDrawTextBlobCommand. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use color define Created 6 years, 3 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 | « no previous file | src/utils/debugger/SkDrawCommand.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 2012 Google Inc. 3 * Copyright 2012 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 8
9 #ifndef SKDRAWCOMMAND_H_ 9 #ifndef SKDRAWCOMMAND_H_
10 #define SKDRAWCOMMAND_H_ 10 #define SKDRAWCOMMAND_H_
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 SkPaint fPaint; 434 SkPaint fPaint;
435 435
436 typedef SkDrawCommand INHERITED; 436 typedef SkDrawCommand INHERITED;
437 }; 437 };
438 438
439 class SkDrawTextBlobCommand : public SkDrawCommand { 439 class SkDrawTextBlobCommand : public SkDrawCommand {
440 public: 440 public:
441 SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint); 441 SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint);
442 442
443 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 443 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
444 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
444 445
445 private: 446 private:
446 SkAutoTUnref<const SkTextBlob> fBlob; 447 SkAutoTUnref<const SkTextBlob> fBlob;
447 SkScalar fXPos; 448 SkScalar fXPos;
448 SkScalar fYPos; 449 SkScalar fYPos;
449 SkPaint fPaint; 450 SkPaint fPaint;
450 451
451 typedef SkDrawCommand INHERITED; 452 typedef SkDrawCommand INHERITED;
452 }; 453 };
453 454
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 class SkPopCullCommand : public SkDrawCommand { 643 class SkPopCullCommand : public SkDrawCommand {
643 public: 644 public:
644 SkPopCullCommand(); 645 SkPopCullCommand();
645 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 646 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
646 virtual Action action() const { return kPopCull_Action; } 647 virtual Action action() const { return kPopCull_Action; }
647 private: 648 private:
648 typedef SkDrawCommand INHERITED; 649 typedef SkDrawCommand INHERITED;
649 }; 650 };
650 651
651 #endif 652 #endif
OLDNEW
« no previous file with comments | « no previous file | src/utils/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698