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

Unified Diff: gm/gm.h

Issue 886543005: Revert of DM::SKPSrc::size() reports correct size. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm.h
diff --git a/gm/gm.h b/gm/gm.h
index 0de9875896f838e6b488db6ba13abf84a17ed948..b474729366adcb505409c0f76f977308add8b4a2 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -53,14 +53,7 @@
void drawBackground(SkCanvas*);
void drawContent(SkCanvas*);
- SkISize getISize() {
- SkISize size = this->onISize();
- // Sanity cap on GM dimensions.
- SkASSERT(size.width() * size.height() <= 2359296 && // 2.25 megapixels
- size.width() <= 2048 && // Typical GPU max dimension.
- size.height() <= 2048);
- return size;
- }
+ SkISize getISize() { return this->onISize(); }
const char* getName();
virtual bool runAsBench() const { return false; }
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698