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

Unified Diff: src/gpu/gl/GrGLStencilBuffer.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLStencilBuffer.h
diff --git a/src/gpu/gl/GrGLStencilBuffer.h b/src/gpu/gl/GrGLStencilBuffer.h
index 3bfbafcad68e11eb6ef21d808067425480cf41d0..305ece8d534a0ac4303c25e712fc4e2ea014883c 100644
--- a/src/gpu/gl/GrGLStencilBuffer.h
+++ b/src/gpu/gl/GrGLStencilBuffer.h
@@ -23,14 +23,19 @@ public:
bool fPacked;
};
+ struct IDDesc {
+ GrGLuint fRenderbufferID;
+ GrGpuResource::LifeCycle fLifeCycle;
+ };
+
GrGLStencilBuffer(GrGpu* gpu,
- GrGLint rbid,
+ const IDDesc& idDesc,
int width, int height,
int sampleCnt,
const Format& format)
- : GrStencilBuffer(gpu, width, height, format.fStencilBits, sampleCnt)
+ : GrStencilBuffer(gpu, idDesc.fLifeCycle, width, height, format.fStencilBits, sampleCnt)
, fFormat(format)
- , fRenderbufferID(rbid) {
+ , fRenderbufferID(idDesc.fRenderbufferID) {
this->registerWithCache();
}
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698