Title: [128785] trunk/Source/WebCore
- Revision
- 128785
- Author
- [email protected]
- Date
- 2012-09-17 11:36:11 -0700 (Mon, 17 Sep 2012)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (128784 => 128785)
--- trunk/Source/WebCore/ChangeLog 2012-09-17 18:36:07 UTC (rev 128784)
+++ trunk/Source/WebCore/ChangeLog 2012-09-17 18:36:11 UTC (rev 128785)
@@ -1,3 +1,17 @@
+2012-09-17 Vangelis Kokkevis <[email protected]>
+
+ [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):
+
2012-09-17 Bo Liu <[email protected]>
Fix LoadImagesAutomatically cache behavior
Modified: trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerBridge.cpp (128784 => 128785)
--- trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerBridge.cpp 2012-09-17 18:36:07 UTC (rev 128784)
+++ trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerBridge.cpp 2012-09-17 18:36:11 UTC (rev 128785)
@@ -55,6 +55,9 @@
, m_next(0)
, m_prev(0)
{
+ // Used by browser tests to detect the use of a Canvas2DLayerBridge.
+ TRACE_EVENT_INSTANT0("test_gpu", "Canvas2DLayerBridgeCreation");
+
bool compositorThreadingEnabled = WebKit::Platform::current()->compositorSupport()->isThreadingEnabled();
// FIXME: We currently turn off double buffering when canvas rendering is
// deferred. What we should be doing is to use a smarter heuristic based
Modified: trunk/Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp (128784 => 128785)
--- trunk/Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp 2012-09-17 18:36:07 UTC (rev 128784)
+++ trunk/Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp 2012-09-17 18:36:11 UTC (rev 128785)
@@ -37,6 +37,7 @@
#include "GraphicsContext3D.h"
#include "GraphicsContext3DPrivate.h"
#include "GraphicsLayerChromium.h"
+#include "TraceEvent.h"
#include <algorithm>
#include <public/Platform.h>
#include <public/WebCompositorSupport.h>
@@ -90,6 +91,9 @@
, m_multisampleColorBuffer(0)
, m_contentsChanged(true)
{
+ // Used by browser tests to detect the use of a DrawingBuffer.
+ TRACE_EVENT_INSTANT0("test_gpu", "DrawingBufferCreation");
+
// We need a separate front and back textures if ...
m_separateFrontTexture = m_preserveDrawingBuffer == Preserve // ... we have to preserve contents after compositing, which is done with a copy or ...
|| WebKit::Platform::current()->compositorSupport()->isThreadingEnabled(); // ... if we're in threaded mode and need to double buffer.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes