| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/gpu/gles2_texture_to_egl_image_translator.h" | 5 #include "content/gpu/gles2_texture_to_egl_image_translator.h" |
| 6 | 6 |
| 7 // Get EGL extension functions. | 7 // Get EGL extension functions. |
| 8 static PFNEGLCREATEIMAGEKHRPROC egl_create_image_khr = | 8 static PFNEGLCREATEIMAGEKHRPROC egl_create_image_khr = |
| 9 reinterpret_cast<PFNEGLCREATEIMAGEKHRPROC>( | 9 reinterpret_cast<PFNEGLCREATEIMAGEKHRPROC>( |
| 10 eglGetProcAddress("eglCreateImageKHR")); | 10 eglGetProcAddress("eglCreateImageKHR")); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Clients of this class will call this method for each EGLImage handle. | 64 // Clients of this class will call this method for each EGLImage handle. |
| 65 // Actual destroying of the handles is done here. | 65 // Actual destroying of the handles is done here. |
| 66 if (!egl_destroy_image_khr) { | 66 if (!egl_destroy_image_khr) { |
| 67 LOG(ERROR) << "egl_destroy_image_khr failed"; | 67 LOG(ERROR) << "egl_destroy_image_khr failed"; |
| 68 return; | 68 return; |
| 69 } | 69 } |
| 70 egl_destroy_image_khr(egl_display_, egl_image); | 70 egl_destroy_image_khr(egl_display_, egl_image); |
| 71 } | 71 } |
| 72 | 72 |
| 73 | 73 |
| OLD | NEW |