Use the factory to create SkGpuDevice objects.
SkGpuDevice constructors are deprecated and the factory should be used instead when filters and blending require offscreen targets. Extra NULL check added: for many reasons, something can go wrong within GrGpuGL::onCreateTexture() and fail to create the backing store's texture. Instead of crashing, we can handle this gracefully and simply render the page without the blending applied. BUG=359947 Review URL: https://codereview.chromium.org/315913002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275553 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment