OLD | NEW |
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 { | 230 { |
231 if (context->isWorkerGlobalScope()) | 231 if (context->isWorkerGlobalScope()) |
232 return instrumentationForWorkerGlobalScope(toWorkerGlobalScope(context))
; | 232 return instrumentationForWorkerGlobalScope(toWorkerGlobalScope(context))
; |
233 return 0; | 233 return 0; |
234 } | 234 } |
235 | 235 |
236 } // namespace InspectorInstrumentation | 236 } // namespace InspectorInstrumentation |
237 | 237 |
238 namespace InstrumentationEvents { | 238 namespace InstrumentationEvents { |
239 const char PaintSetup[] = "PaintSetup"; | 239 const char PaintSetup[] = "PaintSetup"; |
240 const char PaintLayer[] = "PaintLayer"; | |
241 const char RasterTask[] = "RasterTask"; | 240 const char RasterTask[] = "RasterTask"; |
242 const char Paint[] = "Paint"; | 241 const char Paint[] = "Paint"; |
243 const char Layer[] = "Layer"; | 242 const char Layer[] = "Layer"; |
244 const char BeginFrame[] = "BeginFrame"; | 243 const char BeginFrame[] = "BeginFrame"; |
245 const char UpdateLayer[] = "UpdateLayer"; | |
246 }; | 244 }; |
247 | 245 |
248 namespace InstrumentationEventArguments { | 246 namespace InstrumentationEventArguments { |
249 const char LayerId[] = "layerId"; | 247 const char LayerId[] = "layerId"; |
250 const char LayerTreeId[] = "layerTreeId"; | 248 const char LayerTreeId[] = "layerTreeId"; |
251 const char NodeId[] = "nodeId"; | |
252 const char PageId[] = "pageId"; | 249 const char PageId[] = "pageId"; |
253 }; | 250 }; |
254 | 251 |
255 InstrumentingAgents* instrumentationForPage(Page* page) | 252 InstrumentingAgents* instrumentationForPage(Page* page) |
256 { | 253 { |
257 ASSERT(isMainThread()); | 254 ASSERT(isMainThread()); |
258 return page->inspectorController().m_instrumentingAgents.get(); | 255 return page->inspectorController().m_instrumentingAgents.get(); |
259 } | 256 } |
260 | 257 |
261 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) | 258 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) |
262 { | 259 { |
263 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) | 260 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) |
264 return controller->m_instrumentingAgents.get(); | 261 return controller->m_instrumentingAgents.get(); |
265 return 0; | 262 return 0; |
266 } | 263 } |
267 | 264 |
268 } // namespace WebCore | 265 } // namespace WebCore |
269 | 266 |
OLD | NEW |