Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: src/gpu/GrTest.cpp

Issue 859013002: Make stencil buffers uncached for uncached render target textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrStencilBuffer.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrTest.h" 9 #include "GrTest.h"
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 bool onWriteTexturePixels(GrTexture* texture, 138 bool onWriteTexturePixels(GrTexture* texture,
139 int left, int top, int width, int height, 139 int left, int top, int width, int height,
140 GrPixelConfig config, const void* buffer, 140 GrPixelConfig config, const void* buffer,
141 size_t rowBytes) SK_OVERRIDE { 141 size_t rowBytes) SK_OVERRIDE {
142 return false; 142 return false;
143 } 143 }
144 144
145 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } 145 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; }
146 146
147 bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int heig ht) SK_OVERRIDE { 147 bool createStencilBufferForRenderTarget(GrRenderTarget*, bool budgeted,
148 int width, int height) SK_OVERRIDE {
148 return false; 149 return false;
149 } 150 }
150 151
151 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK _OVERRIDE { 152 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK _OVERRIDE {
152 return false; 153 return false;
153 } 154 }
154 155
155 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} 156 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {}
156 157
157 void didAddGpuTraceMarker() SK_OVERRIDE {} 158 void didAddGpuTraceMarker() SK_OVERRIDE {}
(...skipping 20 matching lines...) Expand all
178 // these objects are required for any of tests that use this context. TODO: make stop allocating 179 // these objects are required for any of tests that use this context. TODO: make stop allocating
179 // resources in the buffer pools. 180 // resources in the buffer pools.
180 SkDELETE(fDrawBuffer); 181 SkDELETE(fDrawBuffer);
181 SkDELETE(fDrawBufferVBAllocPool); 182 SkDELETE(fDrawBufferVBAllocPool);
182 SkDELETE(fDrawBufferIBAllocPool); 183 SkDELETE(fDrawBufferIBAllocPool);
183 184
184 fDrawBuffer = NULL; 185 fDrawBuffer = NULL;
185 fDrawBufferVBAllocPool = NULL; 186 fDrawBufferVBAllocPool = NULL;
186 fDrawBufferIBAllocPool = NULL; 187 fDrawBufferIBAllocPool = NULL;
187 } 188 }
OLDNEW
« no previous file with comments | « src/gpu/GrStencilBuffer.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698