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

Side by Side Diff: debugger/SkDebugger.h

Issue 1827403002: Fix old debugger for sk_sp changes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/SkDebugger.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 9
10 #ifndef SKDEBUGGER_H_ 10 #ifndef SKDEBUGGER_H_
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { 51 const SkTDArray<SkDrawCommand*>& getDrawCommands() const {
52 return fDebugCanvas->getDrawCommands(); 52 return fDebugCanvas->getDrawCommands();
53 } 53 }
54 54
55 void highlightCurrentCommand(bool on) { 55 void highlightCurrentCommand(bool on) {
56 fDebugCanvas->toggleFilter(on); 56 fDebugCanvas->toggleFilter(on);
57 } 57 }
58 58
59 void loadPicture(SkPicture* picture); 59 void loadPicture(SkPicture* picture);
60 60
61 SkPicture* copyPicture(); 61 sk_sp<SkPicture> copyPicture();
62 62
63 int getSize() const { 63 int getSize() const {
64 return fDebugCanvas->getSize(); 64 return fDebugCanvas->getSize();
65 } 65 }
66 66
67 void setUserMatrix(SkMatrix userMatrix) { 67 void setUserMatrix(SkMatrix userMatrix) {
68 // Should this live in debugger instead? 68 // Should this live in debugger instead?
69 fDebugCanvas->setUserMatrix(userMatrix); 69 fDebugCanvas->setUserMatrix(userMatrix);
70 } 70 }
71 71
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 private: 125 private:
126 SkDebugCanvas* fDebugCanvas; 126 SkDebugCanvas* fDebugCanvas;
127 SkPicture* fPicture; 127 SkPicture* fPicture;
128 128
129 int fIndex; 129 int fIndex;
130 }; 130 };
131 131
132 132
133 #endif /* SKDEBUGGER_H_ */ 133 #endif /* SKDEBUGGER_H_ */
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/SkDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698