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

Unified Diff: tools/skiaserve/Request.cpp

Issue 2113693002: debugger: Allow for larger images. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/Request.cpp
diff --git a/tools/skiaserve/Request.cpp b/tools/skiaserve/Request.cpp
index f2f10acad1cf0442d41164efb5bdbf56dd3229a5..2af707a57d29e9c57e590f633ef70d0bc0e17ddd 100644
--- a/tools/skiaserve/Request.cpp
+++ b/tools/skiaserve/Request.cpp
@@ -16,6 +16,8 @@ using namespace sk_gpu_test;
static int kDefaultWidth = 1920;
static int kDefaultHeight = 1080;
+static int kMaxWidth = 8192;
+static int kMaxHeight = 8192;
Request::Request(SkString rootUrl)
@@ -126,7 +128,7 @@ GrContext* Request::getContext() {
if (!result) {
result = fContextFactory->get(GrContextFactory::kMESA_ContextType,
GrContextFactory::kNone_ContextOptions);
- }
+ }
return result;
#else
return nullptr;
@@ -148,10 +150,10 @@ SkIRect Request::getBounds() {
bounds = SkIRect::MakeWH(kDefaultWidth, kDefaultHeight);
}
- // We clip to kDefaultWidth / kDefaultHeight for performance reasons
+ // We clip to kMaxWidth / kMaxHeight for performance reasons.
// TODO make this configurable
- bounds = SkIRect::MakeWH(SkTMin(bounds.width(), kDefaultWidth),
- SkTMin(bounds.height(), kDefaultHeight));
+ bounds = SkIRect::MakeWH(SkTMin(bounds.width(), kMaxWidth),
+ SkTMin(bounds.height(), kMaxHeight));
return bounds;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698