SkPictureShader: scale down if width or height is larger than maxTextureSize
authorgen.kim <gen.kim@samsung.com>
Mon, 4 May 2015 05:36:30 +0000 (22:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 4 May 2015 05:36:30 +0000 (22:36 -0700)
commitb9ed8845783ec3c59b2b185d26801f251adbf68d
treeca787552851a53f22475dfcc0715994329837c5f
parent05f7d5cbd83ab30653c79d81dc9829a97b845e38
SkPictureShader: scale down if width or height is larger than maxTextureSize

Grdient renders black because of failure onCreateTexture
if one of width or height is larger than maxTextureSize
with --force-gpu-rasterization.

BUG=chromium:473166

Review URL: https://codereview.chromium.org/1101513004
src/core/SkPictureShader.cpp
src/core/SkPictureShader.h