Index: skia/ext/platform_canvas_linux.cc |
diff --git a/skia/ext/platform_canvas_linux.cc b/skia/ext/platform_canvas_linux.cc |
index 09a0ff4ec8a4b188e1561fa5eae852f617316429..9912c16e085b30161daa4e81df60c5285ceda5ac 100644 |
--- a/skia/ext/platform_canvas_linux.cc |
+++ b/skia/ext/platform_canvas_linux.cc |
@@ -4,6 +4,7 @@ |
#include "skia/ext/platform_canvas.h" |
+#include "base/debug/trace_event.h" |
#include "skia/ext/bitmap_platform_device.h" |
#include "skia/ext/platform_device.h" |
#include "third_party/skia/include/core/SkTypes.h" |
@@ -11,12 +12,16 @@ |
namespace skia { |
PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) { |
+ TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", |
+ "width", width, "height", height); |
if (!initialize(width, height, is_opaque)) |
SK_CRASH(); |
} |
PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque, |
uint8_t* data) { |
+ TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", |
+ "width", width, "height", height); |
if (!initialize(width, height, is_opaque, data)) |
SK_CRASH(); |
} |