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

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

Issue 1705093002: Add batch information to json (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix cpu bot Created 4 years, 10 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 | « tools/debugger/SkDebugCanvas.cpp ('k') | tools/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 * 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual Action action() const { return kNone_Action; } 95 virtual Action action() const { return kNone_Action; }
96 virtual void setActive(bool active) {} 96 virtual void setActive(bool active) {}
97 virtual bool active() const { return false; } 97 virtual bool active() const { return false; }
98 98
99 OpType getType() const { return fOpType; } 99 OpType getType() const { return fOpType; }
100 100
101 virtual bool render(SkCanvas* canvas) const { return false; } 101 virtual bool render(SkCanvas* canvas) const { return false; }
102 102
103 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const; 103 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
104 104
105 Json::Value drawToAndCollectJSON(SkCanvas*, UrlDataManager& urlDataManager) const;
106
105 /* Converts a JSON representation of a command into a newly-allocated SkDraw Command object. It 107 /* Converts a JSON representation of a command into a newly-allocated SkDraw Command object. It
106 * is the caller's responsibility to delete this object. This method may ret urn null if an error 108 * is the caller's responsibility to delete this object. This method may ret urn null if an error
107 * occurs. 109 * occurs.
108 */ 110 */
109 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlData Manager); 111 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlData Manager);
110 112
111 static const char* GetCommandString(OpType type); 113 static const char* GetCommandString(OpType type);
112 114
113 protected: 115 protected:
114 SkTDArray<SkString*> fInfo; 116 SkTDArray<SkString*> fInfo;
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 static SkSetMatrixCommand* fromJSON(Json::Value& command, UrlDataManager& ur lDataManager); 664 static SkSetMatrixCommand* fromJSON(Json::Value& command, UrlDataManager& ur lDataManager);
663 665
664 private: 666 private:
665 SkMatrix fUserMatrix; 667 SkMatrix fUserMatrix;
666 SkMatrix fMatrix; 668 SkMatrix fMatrix;
667 669
668 typedef SkDrawCommand INHERITED; 670 typedef SkDrawCommand INHERITED;
669 }; 671 };
670 672
671 #endif 673 #endif
OLDNEW
« no previous file with comments | « tools/debugger/SkDebugCanvas.cpp ('k') | tools/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698