| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 namespace InstrumentationEvents { | 122 namespace InstrumentationEvents { |
| 123 extern const char PaintSetup[]; | 123 extern const char PaintSetup[]; |
| 124 extern const char PaintLayer[]; | 124 extern const char PaintLayer[]; |
| 125 extern const char RasterTask[]; | 125 extern const char RasterTask[]; |
| 126 extern const char ImageDecodeTask[]; | 126 extern const char ImageDecodeTask[]; |
| 127 extern const char Paint[]; | 127 extern const char Paint[]; |
| 128 extern const char Layer[]; | 128 extern const char Layer[]; |
| 129 extern const char BeginFrame[]; | 129 extern const char BeginFrame[]; |
| 130 extern const char UpdateLayer[]; | 130 extern const char UpdateLayer[]; |
| 131 extern const char GpuTask[]; |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 namespace InstrumentationEventArguments { | 134 namespace InstrumentationEventArguments { |
| 134 extern const char LayerId[]; | 135 extern const char LayerId[]; |
| 135 extern const char LayerTreeId[]; | 136 extern const char LayerTreeId[]; |
| 136 extern const char NodeId[]; | 137 extern const char NodeId[]; |
| 137 extern const char PageId[]; | 138 extern const char PageId[]; |
| 138 extern const char PixelRefId[]; | 139 extern const char PixelRefId[]; |
| 140 extern const char OwnerPid[]; |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 namespace InspectorInstrumentation { | 143 namespace InspectorInstrumentation { |
| 142 | 144 |
| 143 inline InstrumentingAgents* instrumentingAgentsFor(ExecutionContext* context) | 145 inline InstrumentingAgents* instrumentingAgentsFor(ExecutionContext* context) |
| 144 { | 146 { |
| 145 if (!context) | 147 if (!context) |
| 146 return 0; | 148 return 0; |
| 147 return context->isDocument() ? instrumentingAgentsFor(*toDocument(context))
: instrumentingAgentsForNonDocumentContext(context); | 149 return context->isDocument() ? instrumentingAgentsFor(*toDocument(context))
: instrumentingAgentsForNonDocumentContext(context); |
| 148 } | 150 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 179 } // namespace WebCore | 181 } // namespace WebCore |
| 180 | 182 |
| 181 // This file will soon be generated | 183 // This file will soon be generated |
| 182 #include "InspectorInstrumentationInl.h" | 184 #include "InspectorInstrumentationInl.h" |
| 183 | 185 |
| 184 #include "InspectorInstrumentationCustomInl.h" | 186 #include "InspectorInstrumentationCustomInl.h" |
| 185 | 187 |
| 186 #include "InspectorOverridesInl.h" | 188 #include "InspectorOverridesInl.h" |
| 187 | 189 |
| 188 #endif // !defined(InspectorInstrumentation_h) | 190 #endif // !defined(InspectorInstrumentation_h) |
| OLD | NEW |