Changeset 64385 in webkit


Ignore:
Timestamp:
Jul 30, 2010 4:34:40 PM (14 years ago)
Author:
jamesr@google.com
Message:

2010-07-30 James Robinson <jamesr@chromium.org>

Reviewed by Darin Fisher.

Move GLES2 context manipulation to ChromeClient.h and put it behind the right #if guard
https://bugs.webkit.org/show_bug.cgi?id=43281

These calls were initially put in ChromeClientChromium, but they aren't chromium specific.
In theory any port that could create the proper OpenGL ES 2 contexts could implement
these functions. Also moves the calls to be behind the correct #if guard.

  • page/ChromeClient.h:
  • page/chromium/ChromeClientChromium.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64384 r64385  
     12010-07-30  James Robinson  <jamesr@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Move GLES2 context manipulation to ChromeClient.h and put it behind the right #if guard
     6        https://bugs.webkit.org/show_bug.cgi?id=43281
     7
     8        These calls were initially put in ChromeClientChromium, but they aren't chromium specific.
     9        In theory any port that could create the proper OpenGL ES 2 contexts could implement
     10        these functions.  Also moves the calls to be behind the correct #if guard.
     11
     12        * page/ChromeClient.h:
     13        * page/chromium/ChromeClientChromium.h:
     14
    1152010-07-30  Dumitru Daniliuc  <dumi@chromium.org>
    216
  • trunk/WebCore/page/ChromeClient.h

    r63339 r64385  
    6565#endif
    6666
     67#if USE(GLES2_RENDERING)
     68    class GLES2Contxt;
     69#endif
     70
    6771#if ENABLE(NOTIFICATIONS)
    6872    class NotificationPresenter;
     
    220224#endif
    221225
     226#if USE(GLES2_RENDERING)
     227        // Request a GL ES 2 context to use for compositing this page's content.
     228        virtual PassOwnPtr<GLES2Context> getOnscreenGLES2Context() = 0;
     229        virtual PassOwnPtr<GLES2Context> getOffscreenGLES2Context() = 0;
     230#endif
     231
    222232        virtual bool supportsFullscreenForNode(const Node*) { return false; }
    223233        virtual void enterFullscreenForNode(Node*) { }
  • trunk/WebCore/page/chromium/ChromeClientChromium.h

    r63383 r64385  
    4040class PopupContainer;
    4141
    42 #if USE(ACCELERATED_COMPOSITING)
    43 class GLES2Context;
    44 #endif
    45 
    4642// Contains Chromium-specific extensions to the ChromeClient.  Only put
    4743// things here that don't make sense for other ports.
     
    6056    // Notifies embedder that the state of an accessibility object has changed.
    6157    virtual void didChangeAccessibilityObjectState(AccessibilityObject*) = 0;
    62 
    63 #if USE(ACCELERATED_COMPOSITING)
    64     // Request a GL ES 2 context to use for compositing this page's content.
    65     virtual PassOwnPtr<GLES2Context> getOnscreenGLES2Context() = 0;
    66     virtual PassOwnPtr<GLES2Context> getOffscreenGLES2Context() = 0;
    67 #endif
    6858};
    6959
Note: See TracChangeset for help on using the changeset viewer.