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

Unified Diff: Source/platform/graphics/PictureSnapshot.h

Issue 1167063002: DevTools: return error when trying to load an empty (0 x 0) picture (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/inspector/InspectorLayerTreeAgent.cpp ('k') | Source/platform/graphics/PictureSnapshot.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/PictureSnapshot.h
diff --git a/Source/platform/graphics/PictureSnapshot.h b/Source/platform/graphics/PictureSnapshot.h
index d5894ca9cf6c2db2b8df5ed7c3fbacee75175ee5..34bac462f36d6c9f4296df8fa786b3ea4d6fd279 100644
--- a/Source/platform/graphics/PictureSnapshot.h
+++ b/Source/platform/graphics/PictureSnapshot.h
@@ -59,6 +59,7 @@ public:
PassOwnPtr<Vector<char>> replay(unsigned fromStep = 0, unsigned toStep = 0, double scale = 1.0) const;
PassOwnPtr<Timings> profile(unsigned minIterations, double minDuration, const FloatRect* clipRect) const;
PassRefPtr<JSONArray> snapshotCommandLog() const;
+ bool isEmpty() const;
private:
PassOwnPtr<SkBitmap> createBitmap() const;
« no previous file with comments | « Source/core/inspector/InspectorLayerTreeAgent.cpp ('k') | Source/platform/graphics/PictureSnapshot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698