aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTest.cpp
diff options
context:
space:
mode:
authorGravatar kkinnunen <kkinnunen@nvidia.com>2015-01-27 00:30:18 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-27 00:30:18 -0800
commit36c57dfb4fe9bbaca436942d5eaa75b142ba251d (patch)
tree2c36bc441b1746f3f36d2f7061abcb1a99741aaf /src/gpu/GrTest.cpp
parent7f7036ab3fc8bb2f353b3055078ec884e37d67da (diff)
Make stencil buffers uncached for uncached render target textures
Make new stencil buffers of uncached render target textures not affect the cache budgets. This is consistent with render buffer storage of uncached render target textures. Affects only newly created stencil buffers. An uncached render target might still receive a cached stencil buffer if such is available from cache. BUG=skia:3119 BUG=skia:3301 Review URL: https://codereview.chromium.org/859013002
Diffstat (limited to 'src/gpu/GrTest.cpp')
-rw-r--r--src/gpu/GrTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
index ef2517dcf0..e4c7a83513 100644
--- a/src/gpu/GrTest.cpp
+++ b/src/gpu/GrTest.cpp
@@ -144,7 +144,8 @@ private:
void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; }
- bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int height) SK_OVERRIDE {
+ bool createStencilBufferForRenderTarget(GrRenderTarget*, bool budgeted,
+ int width, int height) SK_OVERRIDE {
return false;
}