Index: skia/ext/platform_canvas_win.cc |
diff --git a/skia/ext/platform_canvas_win.cc b/skia/ext/platform_canvas_win.cc |
index 23e76749989b061b56012da099e67c63d6c67817..f2b993b8ec33782802acd9a137f8fb9e85a19774 100644 |
--- a/skia/ext/platform_canvas_win.cc |
+++ b/skia/ext/platform_canvas_win.cc |
@@ -5,6 +5,7 @@ |
#include <windows.h> |
#include <psapi.h> |
+#include "base/debug/trace_event.h" |
#include "skia/ext/bitmap_platform_device_win.h" |
#include "skia/ext/platform_canvas.h" |
@@ -77,6 +78,8 @@ void CrashIfInvalidSection(HANDLE shared_section) { |
#pragma optimize("", on) |
PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) { |
+ TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", |
+ "width", width, "height", height); |
bool initialized = initialize(width, height, is_opaque, NULL); |
if (!initialized) |
CrashForBitmapAllocationFailure(width, height); |
@@ -86,6 +89,8 @@ PlatformCanvas::PlatformCanvas(int width, |
int height, |
bool is_opaque, |
HANDLE shared_section) { |
+ TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", |
+ "width", width, "height", height); |
bool initialized = initialize(width, height, is_opaque, shared_section); |
if (!initialized) { |
CrashIfInvalidSection(shared_section); |