Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1314)

Unified Diff: Source/core/platform/PlatformInstrumentation.h

Issue 16896007: Timeline: add support for deferred canvas rasterization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/PlatformInstrumentation.h
diff --git a/Source/core/platform/PlatformInstrumentation.h b/Source/core/platform/PlatformInstrumentation.h
index 5c449930b19e3eee165fbd14b65430828f46b923..2afbeac427f3995b6f8cfaddbf21d56e54d8aafe 100644
--- a/Source/core/platform/PlatformInstrumentation.h
+++ b/Source/core/platform/PlatformInstrumentation.h
@@ -46,6 +46,8 @@ public:
virtual void didDecodeImage() = 0;
virtual void willResizeImage(bool shouldCache) = 0;
virtual void didResizeImage() = 0;
+ virtual void willRasterizeCanvas() = 0;
+ virtual void didRasterizeCanvas() = 0;
};
class PlatformInstrumentation {
@@ -63,6 +65,8 @@ public:
static void didDecodeImage();
static void willResizeImage(bool shouldCache);
static void didResizeImage();
+ static void willRasterizeCanvas();
+ static void didRasterizeCanvas();
private:
static const char CategoryName[];
@@ -100,6 +104,18 @@ inline void PlatformInstrumentation::didResizeImage()
m_client->didResizeImage();
}
+inline void PlatformInstrumentation::willRasterizeCanvas()
+{
+ FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD();
+ m_client->willRasterizeCanvas();
+}
+
+inline void PlatformInstrumentation::didRasterizeCanvas()
+{
+ FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD();
+ m_client->didRasterizeCanvas();
+}
+
} // namespace WebCore
#endif // PlatformInstrumentation_h
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698