Require budget decision when creating a RenderTarget SkSurface.
authorbsalomon <bsalomon@google.com>
Fri, 16 Jan 2015 15:32:33 +0000 (07:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 16 Jan 2015 15:32:33 +0000 (07:32 -0800)
commitafe3005be3392e43bc51eb7eb2017eefaed85ad1
tree3b96ec2e3249a928a0e876140bec3bf3e9dbb13f
parentb50ced703030dfbda4fc3ef5e6ec9a52fc0405f8
Require budget decision when creating a RenderTarget SkSurface.

Restructure SkGpuDevice creation:
*SkSurfaceProps are optional.
*Use SkSurfaceProps to communicate DF text rather than a flag.
*Tell SkGpuDevice::Create whether RT comes from cache or not.

Review URL: https://codereview.chromium.org/848903004
29 files changed:
bench/nanobench.cpp
dm/DMGpuSupport.h
expectations/gm/ignored-tests.txt
gm/dftext.cpp
gm/discard.cpp
gm/image.cpp
gm/surface.cpp
gm/xfermodes3.cpp
include/core/SkSurface.h
include/gpu/GrGpuResource.h
src/gpu/GrGpuResource.cpp
src/gpu/GrGpuResourceCacheAccess.h
src/gpu/GrResourceCache2.cpp
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice.h
src/image/SkImage_Gpu.cpp
src/image/SkSurface.cpp
src/image/SkSurface_Gpu.cpp
src/image/SkSurface_Gpu.h
tests/DeferredCanvasTest.cpp
tests/GpuDrawPathTest.cpp
tests/ImageFilterTest.cpp
tests/ImageIsOpaqueTest.cpp
tests/ImageNewShaderTest.cpp
tests/PremulAlphaRoundTripTest.cpp
tests/ReadWriteAlphaTest.cpp
tests/ResourceCacheTest.cpp
tests/SurfaceTest.cpp
tools/PictureRenderer.cpp