Changeset 106881 in webkit


Ignore:
Timestamp:
Feb 6, 2012 5:09:43 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Add webGLErrorsToConsoleEnabled Settings flag
https://bugs.webkit.org/show_bug.cgi?id=77696

Patch by Gregg Tavares <gman@google.com> on 2012-02-06
Reviewed by Kenneth Russell.

No new tests as there is no change in behavior.

  • html/canvas/WebGLRenderingContext.cpp:

(WebCore):
(WebCore::WebGLRenderingContext::setupFlags):

  • page/Settings.cpp:

(WebCore::Settings::Settings):

  • page/Settings.h:

(Settings):
(WebCore::Settings::webGLErrorsToConsoleEnabled):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106880 r106881  
     12012-02-06  Gregg Tavares  <gman@google.com>
     2
     3        Add webGLErrorsToConsoleEnabled Settings flag
     4        https://bugs.webkit.org/show_bug.cgi?id=77696
     5
     6        Reviewed by Kenneth Russell.
     7
     8        No new tests as there is no change in behavior.
     9
     10        * html/canvas/WebGLRenderingContext.cpp:
     11        (WebCore):
     12        (WebCore::WebGLRenderingContext::setupFlags):
     13        * page/Settings.cpp:
     14        (WebCore::Settings::Settings):
     15        * page/Settings.h:
     16        (Settings):
     17        (WebCore::Settings::webGLErrorsToConsoleEnabled):
     18
    1192012-02-06  Emil A Eklund  <eae@chromium.org>
    220
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp

    r106873 r106881  
    517517{
    518518    ASSERT(m_context);
     519
     520    Page* p = canvas()->document()->page();
     521    if (p && p->settings()->webGLErrorsToConsoleEnabled())
     522        m_synthesizedErrorsToConsole = true;
    519523
    520524    m_isGLES2Compliant = m_context->isGLES2Compliant();
  • trunk/Source/WebCore/page/Settings.cpp

    r106642 r106881  
    190190    , m_experimentalNotificationsEnabled(false)
    191191    , m_webGLEnabled(false)
     192    , m_webGLErrorsToConsoleEnabled(false)
    192193    , m_openGLMultisamplingEnabled(true)
    193194    , m_privilegedWebGLExtensionsEnabled(false)
     
    807808}
    808809
     810void Settings::setWebGLErrorsToConsoleEnabled(bool enabled)
     811{
     812    m_webGLErrorsToConsoleEnabled = enabled;
     813}
     814
    809815void Settings::setOpenGLMultisamplingEnabled(bool enabled)
    810816{
  • trunk/Source/WebCore/page/Settings.h

    r106642 r106881  
    357357        void setWebGLEnabled(bool);
    358358        bool webGLEnabled() const { return m_webGLEnabled; }
     359
     360        void setWebGLErrorsToConsoleEnabled(bool);
     361        bool webGLErrorsToConsoleEnabled() const { return m_webGLErrorsToConsoleEnabled; }
    359362
    360363        void setOpenGLMultisamplingEnabled(bool);
     
    624627        bool m_experimentalNotificationsEnabled : 1;
    625628        bool m_webGLEnabled : 1;
     629        bool m_webGLErrorsToConsoleEnabled : 1;
    626630        bool m_openGLMultisamplingEnabled : 1;
    627631        bool m_privilegedWebGLExtensionsEnabled : 1;
Note: See TracChangeset for help on using the changeset viewer.