Lines Matching refs:mHandle

247         (mGlDispatch->*mGlGenFunc)(1, &mHandle);  in ScopedGlType()
257 mHandle(rhs.mHandle) { in ScopedGlType()
258 rhs.mHandle = 0; in ScopedGlType()
265 std::swap(mHandle, rhs.mHandle);
270 if (mHandle != 0) { in ~ScopedGlType()
271 (mGlDispatch->*mGlDelFunc)(1, &mHandle); in ~ScopedGlType()
272 mHandle = 0; in ~ScopedGlType()
276 operator GLuint() { return mHandle; } in GLuint()
277 operator GLuint() const { return mHandle; } in GLuint()
283 GLuint mHandle = 0; variable
317 ScopedGlShader(ScopedGlShader&& rhs) : mGlDispatch(rhs.mGlDispatch), mHandle(rhs.mHandle) { in ScopedGlShader()
318 rhs.mHandle = 0; in ScopedGlShader()
323 std::swap(mHandle, rhs.mHandle);
328 if (mHandle != 0) { in ~ScopedGlShader()
329 mGlDispatch->glDeleteShader(mHandle); in ~ScopedGlShader()
330 mHandle = 0; in ~ScopedGlShader()
334 operator GLuint() { return mHandle; } in GLuint()
335 operator GLuint() const { return mHandle; } in GLuint()
338 ScopedGlShader(GlDispatch& dispatch, GLuint handle) : mGlDispatch(&dispatch), mHandle(handle) {} in ScopedGlShader()
341 GLuint mHandle = 0; variable
360 ScopedGlProgram(ScopedGlProgram&& rhs) : mGlDispatch(rhs.mGlDispatch), mHandle(rhs.mHandle) { in ScopedGlProgram()
361 rhs.mHandle = 0; in ScopedGlProgram()
366 std::swap(mHandle, rhs.mHandle);
371 if (mHandle != 0) { in ~ScopedGlProgram()
372 mGlDispatch->glDeleteProgram(mHandle); in ~ScopedGlProgram()
373 mHandle = 0; in ~ScopedGlProgram()
377 operator GLuint() { return mHandle; } in GLuint()
378 operator GLuint() const { return mHandle; } in GLuint()
382 : mGlDispatch(&dispatch), mHandle(handle) {} in ScopedGlProgram()
385 GLuint mHandle = 0; variable
399 : mGralloc(rhs.mGralloc), mHandle(rhs.mHandle) { in ScopedAHardwareBuffer()
400 rhs.mHandle = nullptr; in ScopedAHardwareBuffer()
405 std::swap(mHandle, rhs.mHandle);
410 if (mHandle != nullptr) { in ~ScopedAHardwareBuffer()
411 mGralloc->release(mHandle); in ~ScopedAHardwareBuffer()
412 mHandle = 0; in ~ScopedAHardwareBuffer()
416 uint32_t GetWidth() const { return mGralloc->getWidth(mHandle); } in GetWidth()
418 uint32_t GetHeight() const { return mGralloc->getHeight(mHandle); } in GetHeight()
420 uint32_t GetAHBFormat() const { return mGralloc->getFormat(mHandle); } in GetAHBFormat()
424 int status = mGralloc->lock(mHandle, &mapped); in Lock()
431 void Unlock() { mGralloc->unlock(mHandle); } in Unlock()
433 operator AHardwareBuffer*() { return mHandle; }
434 operator AHardwareBuffer*() const { return mHandle; }
438 : mGralloc(&gralloc), mHandle(handle) {} in ScopedAHardwareBuffer()
441 AHardwareBuffer* mHandle = nullptr; variable