Changeset 95334 in webkit


Ignore:
Timestamp:
Sep 16, 2011 4:33:23 PM (13 years ago)
Author:
nduca@chromium.org
Message:

[chromium] Create WebGL layer for graphics contexts on demand
https://bugs.webkit.org/show_bug.cgi?id=68288

Reviewed by James Robinson.

  • src/GraphicsContext3DChromium.cpp:

(WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::platformLayer):

  • src/GraphicsContext3DPrivate.h:
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

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

    r95328 r95334  
     12011-09-16  Nat Duca  <nduca@chromium.org>
     2
     3        [chromium] Create WebGL layer for graphics contexts on demand
     4        https://bugs.webkit.org/show_bug.cgi?id=68288
     5
     6        Reviewed by James Robinson.
     7
     8        * src/GraphicsContext3DChromium.cpp:
     9        (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
     10        (WebCore::GraphicsContext3DPrivate::platformLayer):
     11        * src/GraphicsContext3DPrivate.h:
     12
    1132011-09-16  chandra shekar v  <chandra.vallala@motorola.com>
    214
  • trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

    r95192 r95334  
    100100#endif
    101101{
    102 #if USE(ACCELERATED_COMPOSITING)
    103     m_compositingLayer = WebGLLayerChromium::create(0);
    104 #endif
    105102}
    106103
     
    217214
    218215#if USE(ACCELERATED_COMPOSITING)
    219 WebGLLayerChromium* GraphicsContext3DPrivate::platformLayer() const
    220 {
     216WebGLLayerChromium* GraphicsContext3DPrivate::platformLayer()
     217{
     218#if USE(ACCELERATED_COMPOSITING)
     219    if (!m_compositingLayer)
     220        m_compositingLayer = WebGLLayerChromium::create(0);
     221#endif
    221222    return m_compositingLayer.get();
    222223}
  • trunk/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h

    r95156 r95334  
    105105
    106106#if USE(ACCELERATED_COMPOSITING)
    107     WebGLLayerChromium* platformLayer() const;
     107    WebGLLayerChromium* platformLayer();
    108108#endif
    109109    bool isGLES2Compliant() const;
Note: See TracChangeset for help on using the changeset viewer.