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

Side by Side Diff: Source/core/inspector/InspectorInstrumentation.cpp

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tune PID to hue magic const 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 namespace InstrumentationEvents { 238 namespace InstrumentationEvents {
239 const char PaintSetup[] = "PaintSetup"; 239 const char PaintSetup[] = "PaintSetup";
240 const char PaintLayer[] = "PaintLayer"; 240 const char PaintLayer[] = "PaintLayer";
241 const char RasterTask[] = "RasterTask"; 241 const char RasterTask[] = "RasterTask";
242 const char ImageDecodeTask[] = "ImageDecodeTask"; 242 const char ImageDecodeTask[] = "ImageDecodeTask";
243 const char Paint[] = "Paint"; 243 const char Paint[] = "Paint";
244 const char Layer[] = "Layer"; 244 const char Layer[] = "Layer";
245 const char BeginFrame[] = "BeginFrame"; 245 const char BeginFrame[] = "BeginFrame";
246 const char UpdateLayer[] = "UpdateLayer"; 246 const char UpdateLayer[] = "UpdateLayer";
247 const char GPUTask[] = "GPUTask";
247 }; 248 };
248 249
249 namespace InstrumentationEventArguments { 250 namespace InstrumentationEventArguments {
250 const char LayerId[] = "layerId"; 251 const char LayerId[] = "layerId";
251 const char LayerTreeId[] = "layerTreeId"; 252 const char LayerTreeId[] = "layerTreeId";
252 const char NodeId[] = "nodeId"; 253 const char NodeId[] = "nodeId";
253 const char PageId[] = "pageId"; 254 const char PageId[] = "pageId";
254 const char PixelRefId[] = "pixelRefId"; 255 const char PixelRefId[] = "pixelRefId";
256 const char OwnerPID[] = "ownerPID";
255 }; 257 };
256 258
257 InstrumentingAgents* instrumentationForPage(Page* page) 259 InstrumentingAgents* instrumentationForPage(Page* page)
258 { 260 {
259 ASSERT(isMainThread()); 261 ASSERT(isMainThread());
260 return page->inspectorController().m_instrumentingAgents.get(); 262 return page->inspectorController().m_instrumentingAgents.get();
261 } 263 }
262 264
263 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work erGlobalScope) 265 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work erGlobalScope)
264 { 266 {
265 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect orController()) 267 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect orController())
266 return controller->m_instrumentingAgents.get(); 268 return controller->m_instrumentingAgents.get();
267 return 0; 269 return 0;
268 } 270 }
269 271
270 } // namespace WebCore 272 } // namespace WebCore
271 273
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.h ('k') | Source/core/inspector/InspectorTimelineAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698