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

Side by Side Diff: Source/core/platform/PlatformInstrumentation.h

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressing comments. Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698