diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 13:22:01 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 13:22:01 +0000 |
commit | e4f9f9bd81b6dc2ca82f5b8913f3a49c616c1dda (patch) | |
tree | 5868ab46e38cb7a66856f2b8c0e50847733d2620 /ui/gfx/gl/gl_context_cgl.cc | |
parent | 53cf9fc03466a57d403c8cd5869881b7d6aa3583 (diff) | |
download | chromium_src-e4f9f9bd81b6dc2ca82f5b8913f3a49c616c1dda.zip chromium_src-e4f9f9bd81b6dc2ca82f5b8913f3a49c616c1dda.tar.gz chromium_src-e4f9f9bd81b6dc2ca82f5b8913f3a49c616c1dda.tar.bz2 |
Check for extensions in order to fail early.
Currently, we're not checking for extensions on EGL path and we're only checking for XComposite extensions browser side. This change checks for extensions early and to fail at context creation (technically GLES2Decoder) creation time.
BUG=none
TEST=on hardware supporting the extensions
Review URL: http://codereview.chromium.org/8293004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/gl/gl_context_cgl.cc')
-rw-r--r-- | ui/gfx/gl/gl_context_cgl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/gfx/gl/gl_context_cgl.cc b/ui/gfx/gl/gl_context_cgl.cc index a759793..86933b64 100644 --- a/ui/gfx/gl/gl_context_cgl.cc +++ b/ui/gfx/gl/gl_context_cgl.cc @@ -101,7 +101,11 @@ bool GLContextCGL::MakeCurrent(GLSurface* surface) { } SetCurrent(this, surface); - surface->OnMakeCurrent(this); + if (!surface->OnMakeCurrent(this)) { + LOG(ERROR) << "Unable to make gl context current."; + return false; + } + return true; } |