| 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
|
|
|