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

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

Issue 1083133002: Rename GrStencilBuffer to GrStencilAttachment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Align data member Created 5 years, 8 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/GrGLStencilAttachment.cpp ('k') | src/gpu/gl/GrGLStencilBuffer.cpp » ('j') | 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
deleted file mode 100644
index 0cce827a747566c7e8d11c7484cd748ab74439d0..0000000000000000000000000000000000000000
--- a/src/gpu/gl/GrGLStencilBuffer.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef GrGLStencilBuffer_DEFINED
-#define GrGLStencilBuffer_DEFINED
-
-#include "gl/GrGLInterface.h"
-#include "GrStencilBuffer.h"
-
-class GrGLStencilBuffer : public GrStencilBuffer {
-public:
- static const GrGLenum kUnknownInternalFormat = ~0U;
- static const GrGLuint kUnknownBitCount = ~0U;
- struct Format {
- GrGLenum fInternalFormat;
- GrGLuint fStencilBits;
- GrGLuint fTotalBits;
- bool fPacked;
- };
-
- struct IDDesc {
- IDDesc() : fRenderbufferID(0), fLifeCycle(kCached_LifeCycle) {}
- GrGLuint fRenderbufferID;
- GrGpuResource::LifeCycle fLifeCycle;
- };
-
- GrGLStencilBuffer(GrGpu* gpu,
- const IDDesc& idDesc,
- int width, int height,
- int sampleCnt,
- const Format& format)
- : GrStencilBuffer(gpu, idDesc.fLifeCycle, width, height, format.fStencilBits, sampleCnt)
- , fFormat(format)
- , fRenderbufferID(idDesc.fRenderbufferID) {
- this->registerWithCache();
- }
-
- GrGLuint renderbufferID() const {
- return fRenderbufferID;
- }
-
- const Format& format() const { return fFormat; }
-
-protected:
- // overrides of GrResource
- void onRelease() override;
- void onAbandon() override;
-
-private:
- size_t onGpuMemorySize() const override;
-
- Format fFormat;
- // may be zero for external SBs associated with external RTs
- // (we don't require the client to give us the id, just tell
- // us how many bits of stencil there are).
- GrGLuint fRenderbufferID;
-
- typedef GrStencilBuffer INHERITED;
-};
-
-#endif
« no previous file with comments | « src/gpu/gl/GrGLStencilAttachment.cpp ('k') | src/gpu/gl/GrGLStencilBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698