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

Unified Diff: debugger/SkDebugger.h

Issue 513983002: Try out scalar picture sizes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT again Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/QT/SkRasterWidget.cpp ('k') | debugger/SkDebugger.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/SkDebugger.h
diff --git a/debugger/SkDebugger.h b/debugger/SkDebugger.h
index ffb2953272d8e674e6f1041c7a8a63012dbacf52..9ad21e24509c315f8bd83e2d3430159fca8e3377 100644
--- a/debugger/SkDebugger.h
+++ b/debugger/SkDebugger.h
@@ -60,9 +60,7 @@ public:
fDebugCanvas->toggleFilter(on);
}
- void resize(int width, int height) {
- fDebugCanvas->setBounds(width, height);
- }
+ void setWindowSize(int width, int height) { fDebugCanvas->setWindowSize(width, height); }
void loadPicture(SkPicture* picture);
@@ -93,12 +91,8 @@ public:
return fDebugCanvas->getCurrentClip();
}
- int pictureHeight() {
- return fPictureHeight;
- }
-
- int pictureWidth() {
- return fPictureWidth;
+ SkRect pictureCull() const {
+ return NULL == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect();
}
int index() {
@@ -138,8 +132,6 @@ private:
SkDebugCanvas* fDebugCanvas;
SkPicture* fPicture;
- int fPictureWidth;
- int fPictureHeight;
int fIndex;
};
« no previous file with comments | « debugger/QT/SkRasterWidget.cpp ('k') | debugger/SkDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698