diff options
author | 2012-02-10 21:01:00 +0000 | |
---|---|---|
committer | 2012-02-10 21:01:00 +0000 | |
commit | dd182cbca60a7f0003330c01dfc64f69f56aea90 (patch) | |
tree | 19e01a17322afef55c47163c963e32a3678ca385 /src/gpu/GrGLStencilBuffer.cpp | |
parent | 5eb7b8cf34a554a793f5e8122236a957cfb1b85f (diff) |
Move GL-specific source code to make room for D3D back end.
git-svn-id: http://skia.googlecode.com/svn/trunk@3165 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGLStencilBuffer.cpp')
-rw-r--r-- | src/gpu/GrGLStencilBuffer.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/gpu/GrGLStencilBuffer.cpp b/src/gpu/GrGLStencilBuffer.cpp deleted file mode 100644 index bc0bb364e8..0000000000 --- a/src/gpu/GrGLStencilBuffer.cpp +++ /dev/null @@ -1,40 +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. - */ - - -#include "GrGLStencilBuffer.h" -#include "GrGpuGL.h" - -GrGLStencilBuffer::~GrGLStencilBuffer() { - this->release(); -} - -size_t GrGLStencilBuffer::sizeInBytes() const { - uint64_t size = this->width(); - size *= this->height(); - size *= fFormat.fTotalBits; - size *= GrMax(1,this->numSamples()); - return static_cast<size_t>(size / 8); -} - -void GrGLStencilBuffer::onRelease() { - if (0 != fRenderbufferID) { - GrGpuGL* gpuGL = (GrGpuGL*) this->getGpu(); - const GrGLInterface* gl = gpuGL->glInterface(); - GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); - fRenderbufferID = 0; - } - INHERITED::onRelease(); -} - -void GrGLStencilBuffer::onAbandon() { - fRenderbufferID = 0; - INHERITED::onAbandon(); -} - - |