Make SkImage_Gpu share it's pixelref with the surface to prevent premature return...
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 25 Jul 2013 23:29:40 +0000 (23:29 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 25 Jul 2013 23:29:40 +0000 (23:29 +0000)
commit4d24b747e272355395f456e088a2d0177c00ddb5
tree83a81375c0c293c08b51afc5d467a7f953c5eadf
parent1acab362fdde40948e47438edcc4326e04b9b52b
Make SkImage_Gpu share it's pixelref with the surface to prevent premature return to scratch pool.

BUG=crbug.com/263329
TEST=Surface unit test, function Test_crbug263329
R=bsalomon@google.com, reed@google.com

Author: junov@chromium.org

Review URL: https://chromiumcodereview.appspot.com/20354003

git-svn-id: http://skia.googlecode.com/svn/trunk@10378 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkImage.h
src/image/SkImage_Gpu.cpp
src/image/SkSurface_Gpu.cpp
tests/SurfaceTest.cpp