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