Changeset 128785 in webkit


Ignore:
Timestamp:
Sep 17, 2012 11:36:11 AM (12 years ago)
Author:
vangelis@chromium.org
Message:

[chromium] Add gpu_test trace events tracking the creation of a DrawingBuffer
and Canvas2DLayerBridge. They will be used by browser tests to verify the
existence of WebGL and accelerated canvas.
https://bugs.webkit.org/show_bug.cgi?id=96871

Reviewed by James Robinson.

  • platform/graphics/chromium/Canvas2DLayerBridge.cpp:

(WebCore::Canvas2DLayerBridge::Canvas2DLayerBridge):

  • platform/graphics/chromium/DrawingBufferChromium.cpp:

(WebCore::DrawingBuffer::DrawingBuffer):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128780 r128785  
     12012-09-17  Vangelis Kokkevis  <vangelis@chromium.org>
     2
     3        [chromium] Add gpu_test trace events tracking the creation of a DrawingBuffer
     4        and Canvas2DLayerBridge. They will be used by browser tests to verify the
     5        existence of WebGL and accelerated canvas.
     6        https://bugs.webkit.org/show_bug.cgi?id=96871
     7
     8        Reviewed by James Robinson.
     9
     10        * platform/graphics/chromium/Canvas2DLayerBridge.cpp:
     11        (WebCore::Canvas2DLayerBridge::Canvas2DLayerBridge):
     12        * platform/graphics/chromium/DrawingBufferChromium.cpp:
     13        (WebCore::DrawingBuffer::DrawingBuffer):
     14
    1152012-09-17  Bo Liu  <boliu@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerBridge.cpp

    r127952 r128785  
    5656    , m_prev(0)
    5757{
     58    // Used by browser tests to detect the use of a Canvas2DLayerBridge.
     59    TRACE_EVENT_INSTANT0("test_gpu", "Canvas2DLayerBridgeCreation");
     60
    5861    bool compositorThreadingEnabled = WebKit::Platform::current()->compositorSupport()->isThreadingEnabled();
    5962    // FIXME: We currently turn off double buffering when canvas rendering is
  • trunk/Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp

    r127952 r128785  
    3838#include "GraphicsContext3DPrivate.h"
    3939#include "GraphicsLayerChromium.h"
     40#include "TraceEvent.h"
    4041#include <algorithm>
    4142#include <public/Platform.h>
     
    9192    , m_contentsChanged(true)
    9293{
     94    // Used by browser tests to detect the use of a DrawingBuffer.
     95    TRACE_EVENT_INSTANT0("test_gpu", "DrawingBufferCreation");
     96
    9397    // We need a separate front and back textures if ...
    9498    m_separateFrontTexture = m_preserveDrawingBuffer == Preserve // ... we have to preserve contents after compositing, which is done with a copy or ...
Note: See TracChangeset for help on using the changeset viewer.