Changeset 93689 in webkit


Ignore:
Timestamp:
Aug 23, 2011 7:11:11 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Make WebGL context current before querying for extensions
https://bugs.webkit.org/show_bug.cgi?id=66788

We're making changes on the Chromium side for threaded compositing that
will require makeContextCurrent to be called on the appropriate thread
before any other GL calls.

In line with other GraphicsContext3D implementations, we do this
implicitly. This is the minimum change that makes WebGL compliant.

Patch by Iain Merrick <husky@google.com> on 2011-08-23
Reviewed by Kenneth Russell.

  • src/GraphicsContext3DChromium.cpp:

(WebCore::GraphicsContext3DInternal::initializeExtensions):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r93682 r93689  
     12011-08-23  Iain Merrick  <husky@google.com>
     2
     3        [chromium] Make WebGL context current before querying for extensions
     4        https://bugs.webkit.org/show_bug.cgi?id=66788
     5
     6        We're making changes on the Chromium side for threaded compositing that
     7        will require makeContextCurrent to be called on the appropriate thread
     8        before any other GL calls.
     9
     10        In line with other GraphicsContext3D implementations, we do this
     11        implicitly. This is the minimum change that makes WebGL compliant.
     12
     13        Reviewed by Kenneth Russell.
     14
     15        * src/GraphicsContext3DChromium.cpp:
     16        (WebCore::GraphicsContext3DInternal::initializeExtensions):
     17
    1182011-08-23  Scott Byer  <scottbyer@chromium.org>
    219
  • trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

    r93625 r93689  
    790790void GraphicsContext3DInternal::initializeExtensions()
    791791{
    792     if (!m_initializedAvailableExtensions) {
     792    bool success = makeContextCurrent();
     793    ASSERT(success);
     794    if (success && !m_initializedAvailableExtensions) {
    793795        String extensionsString = getString(GraphicsContext3D::EXTENSIONS);
    794796        splitStringHelper(extensionsString, m_enabledExtensions);
Note: See TracChangeset for help on using the changeset viewer.