diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index 9f876f1213..dd0e272dbb 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -256,8 +256,9 @@ bool GrSoftwarePathRenderer::onDrawPath(const DrawPathArgs& args) { // Use the cache only if >50% of the path is visible. int unclippedWidth = unclippedDevShapeBounds.width(); int unclippedHeight = unclippedDevShapeBounds.height(); - int unclippedArea = unclippedWidth * unclippedHeight; - int clippedArea = clippedDevShapeBounds.width() * clippedDevShapeBounds.height(); + int64_t unclippedArea = sk_64_mul(unclippedWidth, unclippedHeight); + int64_t clippedArea = sk_64_mul(clippedDevShapeBounds.width(), + clippedDevShapeBounds.height()); int maxTextureSize = args.fRenderTargetContext->caps()->maxTextureSize(); if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || unclippedHeight > maxTextureSize) { |