Changeset 107127 in webkit


Ignore:
Timestamp:
Feb 8, 2012 1:32:54 PM (12 years ago)
Author:
jamesr@google.com
Message:

[chromium] Check that we can make the SharedGraphicsContext3D current before returning
https://bugs.webkit.org/show_bug.cgi?id=78142

Reviewed by Stephen White.

If we can't make the context current, we can't use it.

  • platform/graphics/gpu/SharedGraphicsContext3D.cpp:

(WebCore::SharedGraphicsContext3D::get):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107123 r107127  
     12012-02-08  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Check that we can make the SharedGraphicsContext3D current before returning
     4        https://bugs.webkit.org/show_bug.cgi?id=78142
     5
     6        Reviewed by Stephen White.
     7
     8        If we can't make the context current, we can't use it.
     9
     10        * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
     11        (WebCore::SharedGraphicsContext3D::get):
     12
    1132012-02-08  Abhishek Arya  <inferno@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp

    r95901 r107127  
    4040    attributes.shareResources = true;
    4141    static GraphicsContext3D* context = GraphicsContext3D::create(attributes, 0).leakRef();
     42    if (context && !context->makeContextCurrent())
     43        context = 0;
    4244    return context;
    4345}
Note: See TracChangeset for help on using the changeset viewer.