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

Unified Diff: tools/gpuveto.cpp

Issue 1974833003: SkPictureGpuAnalyzer (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: sk_sp<GrContextThreadSafeProxy> Created 4 years, 7 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
« include/core/SkPictureAnalyzer.h ('K') | « tests/PictureTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpuveto.cpp
diff --git a/tools/gpuveto.cpp b/tools/gpuveto.cpp
index 59b3bef2d9b1164546cfb4b04881642643013c81..4672a38b6b05d10a56fc71d77b3633e24343ad7c 100644
--- a/tools/gpuveto.cpp
+++ b/tools/gpuveto.cpp
@@ -7,6 +7,7 @@
#include "SkCommandLineFlags.h"
#include "SkPicture.h"
+#include "SkPictureAnalyzer.h"
#include "SkPictureRecorder.h"
#include "SkStream.h"
@@ -57,7 +58,7 @@ int tool_main(int argc, char** argv) {
nullptr, 0));
sk_sp<SkPicture> recorded(recorder.finishRecordingAsPicture());
- if (recorded->suitableForGpuRasterization(nullptr)) {
+ if (SkPictureGpuAnalyzer(recorded).suitableForGpuRasterization(nullptr)) {
SkDebugf("suitable\n");
} else {
SkDebugf("unsuitable\n");
« include/core/SkPictureAnalyzer.h ('K') | « tests/PictureTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698