Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 | 59 |
| 60 static const char ImageDecodeEvent[]; | 60 static const char ImageDecodeEvent[]; |
| 61 static const char ImageResizeEvent[]; | 61 static const char ImageResizeEvent[]; |
| 62 static const char DrawLazyPixelRefEvent[]; | 62 static const char DrawLazyPixelRefEvent[]; |
| 63 | 63 |
| 64 static const char ImageTypeArgument[]; | 64 static const char ImageTypeArgument[]; |
| 65 static const char CachedArgument[]; | 65 static const char CachedArgument[]; |
| 66 | 66 |
| 67 static const char LazyPixelRef[]; | 67 static const char LazyPixelRef[]; |
| 68 | 68 |
| 69 static const char GpuTask[]; | |
|
caseq
2013/11/01 13:04:20
Please move these to InspectorInstrumentation.
alph
2013/11/01 16:40:19
Done.
| |
| 70 static const char GpuTaskRendererPid[]; | |
| 71 | |
| 69 static void setClient(PlatformInstrumentationClient*); | 72 static void setClient(PlatformInstrumentationClient*); |
| 70 static bool hasClient() { return m_client; } | 73 static bool hasClient() { return m_client; } |
| 71 | 74 |
| 72 static void willDecodeImage(const String& imageType); | 75 static void willDecodeImage(const String& imageType); |
| 73 static void didDecodeImage(); | 76 static void didDecodeImage(); |
| 74 static void willResizeImage(bool shouldCache); | 77 static void willResizeImage(bool shouldCache); |
| 75 static void didResizeImage(); | 78 static void didResizeImage(); |
| 76 static void didDrawLazyPixelRef(unsigned long long lazyPixelRefId); | 79 static void didDrawLazyPixelRef(unsigned long long lazyPixelRefId); |
| 77 | 80 |
| 78 private: | 81 private: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 } | 115 } |
| 113 | 116 |
| 114 inline void PlatformInstrumentation::didDrawLazyPixelRef(unsigned long long lazy PixelRefId) | 117 inline void PlatformInstrumentation::didDrawLazyPixelRef(unsigned long long lazy PixelRefId) |
| 115 { | 118 { |
| 116 TRACE_EVENT_INSTANT1(CategoryName, DrawLazyPixelRefEvent, LazyPixelRef, lazy PixelRefId); | 119 TRACE_EVENT_INSTANT1(CategoryName, DrawLazyPixelRefEvent, LazyPixelRef, lazy PixelRefId); |
| 117 } | 120 } |
| 118 | 121 |
| 119 } // namespace WebCore | 122 } // namespace WebCore |
| 120 | 123 |
| 121 #endif // PlatformInstrumentation_h | 124 #endif // PlatformInstrumentation_h |
| OLD | NEW |