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/common/gpu/media/gles2_texture_to_egl_image_translator.h" | 5 #include "content/common/gpu/media/gles2_texture_to_egl_image_translator.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 // Get EGL extension functions. | 9 // Get EGL extension functions. |
10 static PFNEGLCREATEIMAGEKHRPROC egl_create_image_khr = | 10 static PFNEGLCREATEIMAGEKHRPROC egl_create_image_khr = |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 GLuint texture = 0; | 53 GLuint texture = 0; |
54 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
55 return texture; | 55 return texture; |
56 } | 56 } |
57 | 57 |
58 void Gles2TextureToEglImageTranslator::DestroyEglImage( | 58 void Gles2TextureToEglImageTranslator::DestroyEglImage( |
59 EGLDisplay egl_display, EGLImageKHR egl_image) { | 59 EGLDisplay egl_display, EGLImageKHR egl_image) { |
60 // Clients of this class will call this method for each EGLImage handle. | 60 // Clients of this class will call this method for each EGLImage handle. |
61 // Actual destroying of the handles is done here. | 61 // Actual destroying of the handles is done here. |
62 if (!egl_destroy_image_khr) { | 62 if (!egl_destroy_image_khr) { |
63 LOG(ERROR) << "egl_destroy_image_khr failed"; | 63 DLOG(ERROR) << "egl_destroy_image_khr failed"; |
64 return; | 64 return; |
65 } | 65 } |
66 egl_destroy_image_khr(egl_display, egl_image); | 66 egl_destroy_image_khr(egl_display, egl_image); |
67 } | 67 } |
OLD | NEW |