diff options
author | 2018-09-18 23:46:33 +0000 | |
---|---|---|
committer | 2018-09-18 23:46:33 +0000 | |
commit | a500ceab71ee514f850518ed5edbeb603538342c (patch) | |
tree | 4f9b53b0f512b7dda5e06200defb846e166601e1 /libs/hwui/HardwareBitmapUploader.cpp | |
parent | a01a180991bb047f75956f68265095792d575ae6 (diff) | |
parent | 11606ffa364a5f99b892c550c750e482133a9f45 (diff) |
Merge "Implement WebView support for Vulkan using temporary buffer"
Diffstat (limited to 'libs/hwui/HardwareBitmapUploader.cpp')
-rw-r--r-- | libs/hwui/HardwareBitmapUploader.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libs/hwui/HardwareBitmapUploader.cpp b/libs/hwui/HardwareBitmapUploader.cpp index 8ae8525f1441..165fc4860fb2 100644 --- a/libs/hwui/HardwareBitmapUploader.cpp +++ b/libs/hwui/HardwareBitmapUploader.cpp @@ -107,39 +107,6 @@ static bool hasFP16Support() { #define FENCE_TIMEOUT 2000000000 -class AutoEglImage { -public: - AutoEglImage(EGLDisplay display, EGLClientBuffer clientBuffer) : mDisplay(display) { - EGLint imageAttrs[] = {EGL_IMAGE_PRESERVED_KHR, EGL_TRUE, EGL_NONE}; - image = eglCreateImageKHR(display, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, clientBuffer, - imageAttrs); - } - - ~AutoEglImage() { - if (image != EGL_NO_IMAGE_KHR) { - eglDestroyImageKHR(mDisplay, image); - } - } - - EGLImageKHR image = EGL_NO_IMAGE_KHR; - -private: - EGLDisplay mDisplay = EGL_NO_DISPLAY; -}; - -class AutoSkiaGlTexture { -public: - AutoSkiaGlTexture() { - glGenTextures(1, &mTexture); - glBindTexture(GL_TEXTURE_2D, mTexture); - } - - ~AutoSkiaGlTexture() { glDeleteTextures(1, &mTexture); } - -private: - GLuint mTexture = 0; -}; - struct FormatInfo { PixelFormat pixelFormat; GLint format, type; |