static int kDefaultWidth = 1920;
static int kDefaultHeight = 1080;
+static int kMaxWidth = 8192;
+static int kMaxHeight = 8192;
Request::Request(SkString rootUrl)
if (!result) {
result = fContextFactory->get(GrContextFactory::kMESA_ContextType,
GrContextFactory::kNone_ContextOptions);
- }
+ }
return result;
#else
return nullptr;
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;
}