Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: ui/gl/gl_surface_egl.cc

Issue 10823045: Do not CHECK that handle returned by eglQuerySurfacePointerANGLE is non-null. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698