Changeset 90878 in webkit


Ignore:
Timestamp:
Jul 12, 2011 7:28:17 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Added the ability to dynamically change the parent context of a WebGraphicsContext3D.
GraphicsContext3DInternal::platformTexture uses this to set the parent as appropriate.
https://bugs.webkit.org/show_bug.cgi?id=64397

Patch by Al Patrick <apatrick@chromium.org> on 2011-07-12
Reviewed by Kenneth Russell.

  • public/WebGraphicsContext3D.h:

(WebKit::WebGraphicsContext3D::setParentContext):

  • src/GraphicsContext3DChromium.cpp:

(WebCore::GraphicsContext3DInternal::platformTexture):

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

Legend:

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

    r90872 r90878  
     12011-07-12  Al Patrick  <apatrick@chromium.org>
     2
     3        Added the ability to dynamically change the parent context of a WebGraphicsContext3D.
     4        GraphicsContext3DInternal::platformTexture uses this to set the parent as appropriate.
     5        https://bugs.webkit.org/show_bug.cgi?id=64397
     6
     7        Reviewed by Kenneth Russell.
     8
     9        * public/WebGraphicsContext3D.h:
     10        (WebKit::WebGraphicsContext3D::setParentContext):
     11        * src/GraphicsContext3DChromium.cpp:
     12        (WebCore::GraphicsContext3DInternal::platformTexture):
     13
    1142011-07-12  James Robinson  <jamesr@chromium.org>
    215
  • trunk/Source/WebKit/chromium/public/WebGraphicsContext3D.h

    r87353 r90878  
    133133    virtual bool isGLES2Compliant() = 0;
    134134
     135    virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return false; }
     136
    135137    // Helper for software compositing path. Reads back the frame buffer into
    136138    // the memory region pointed to by "pixels" with size "bufferSize". It is
  • trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

    r90872 r90878  
    155155Platform3DObject GraphicsContext3DInternal::platformTexture() const
    156156{
     157    m_impl->setParentContext(m_webViewImpl->graphicsContext3D());
    157158    return m_impl->getPlatformTextureId();
    158159}
Note: See TracChangeset for help on using the changeset viewer.