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

Side by Side Diff: debugger/SkDebugger.h

Issue 835113002: Remove draw window size state from SkDebugCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@debugger-small-things-04-index-zero-draw
Patch Set: rebase Created 5 years, 11 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/SkRasterWidget.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
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 setWindowSize(int width, int height) { fDebugCanvas->setWindowSize(widt h, height); }
60
61 void loadPicture(SkPicture* picture); 59 void loadPicture(SkPicture* picture);
62 60
63 SkPicture* copyPicture(); 61 SkPicture* copyPicture();
64 62
65 int getSize() const { 63 int getSize() const {
66 return fDebugCanvas->getSize(); 64 return fDebugCanvas->getSize();
67 } 65 }
68 66
69 void setUserMatrix(SkMatrix userMatrix) { 67 void setUserMatrix(SkMatrix userMatrix) {
70 // Should this live in debugger instead? 68 // Should this live in debugger instead?
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 124
127 private: 125 private:
128 SkDebugCanvas* fDebugCanvas; 126 SkDebugCanvas* fDebugCanvas;
129 SkPicture* fPicture; 127 SkPicture* fPicture;
130 128
131 int fIndex; 129 int fIndex;
132 }; 130 };
133 131
134 132
135 #endif /* SKDEBUGGER_H_ */ 133 #endif /* SKDEBUGGER_H_ */
OLDNEW
« no previous file with comments | « debugger/QT/SkRasterWidget.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698