OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/gl/gl_surface_egl.h" | 5 #include "ui/gl/gl_surface_egl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 return NULL; | 455 return NULL; |
456 | 456 |
457 void* handle; | 457 void* handle; |
458 if (!eglQuerySurfacePointerANGLE(g_display, | 458 if (!eglQuerySurfacePointerANGLE(g_display, |
459 GetHandle(), | 459 GetHandle(), |
460 EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE, | 460 EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE, |
461 &handle)) { | 461 &handle)) { |
462 return NULL; | 462 return NULL; |
463 } | 463 } |
464 | 464 |
465 CHECK(handle); | |
466 | |
467 return handle; | 465 return handle; |
468 #endif | 466 #endif |
469 } | 467 } |
470 | 468 |
471 PbufferGLSurfaceEGL::~PbufferGLSurfaceEGL() { | 469 PbufferGLSurfaceEGL::~PbufferGLSurfaceEGL() { |
472 Destroy(); | 470 Destroy(); |
473 } | 471 } |
474 | 472 |
475 } // namespace gfx | 473 } // namespace gfx |
OLD | NEW |