diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 21:39:28 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 21:39:28 +0000 |
commit | b207f31f7c090307173ee38c11621c6b10e3011d (patch) | |
tree | 30edac2d2a9370cd762ee7307ea679808caff8fc /skia/ext/platform_canvas_win.cc | |
parent | f3ddcadfa8427ee9f8f45f9a7944d0b0a4b14bfd (diff) | |
download | chromium_src-b207f31f7c090307173ee38c11621c6b10e3011d.zip chromium_src-b207f31f7c090307173ee38c11621c6b10e3011d.tar.gz chromium_src-b207f31f7c090307173ee38c11621c6b10e3011d.tar.bz2 |
Add traces in compositor, views and skia
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8440008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_canvas_win.cc')
-rw-r--r-- | skia/ext/platform_canvas_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/skia/ext/platform_canvas_win.cc b/skia/ext/platform_canvas_win.cc index 23e7674..f2b993b 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); |