| OLD | NEW |
| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 TracingSessionIdForWorker: "TracingSessionIdForWorker", | 139 TracingSessionIdForWorker: "TracingSessionIdForWorker", |
| 140 | 140 |
| 141 DecodeImage: "Decode Image", | 141 DecodeImage: "Decode Image", |
| 142 ResizeImage: "Resize Image", | 142 ResizeImage: "Resize Image", |
| 143 DrawLazyPixelRef: "Draw LazyPixelRef", | 143 DrawLazyPixelRef: "Draw LazyPixelRef", |
| 144 DecodeLazyPixelRef: "Decode LazyPixelRef", | 144 DecodeLazyPixelRef: "Decode LazyPixelRef", |
| 145 | 145 |
| 146 LazyPixelRef: "LazyPixelRef", | 146 LazyPixelRef: "LazyPixelRef", |
| 147 LayerTreeHostImplSnapshot: "cc::LayerTreeHostImpl", | 147 LayerTreeHostImplSnapshot: "cc::LayerTreeHostImpl", |
| 148 PictureSnapshot: "cc::Picture", | 148 PictureSnapshot: "cc::Picture", |
| 149 DisplayItemListSnapshot: "cc::DisplayItemList", |
| 149 | 150 |
| 150 // CpuProfile is a virtual event created on frontend to support | 151 // CpuProfile is a virtual event created on frontend to support |
| 151 // serialization of CPU Profiles within tracing timeline data. | 152 // serialization of CPU Profiles within tracing timeline data. |
| 152 CpuProfile: "CpuProfile" | 153 CpuProfile: "CpuProfile" |
| 153 } | 154 } |
| 154 | 155 |
| 155 WebInspector.TimelineModel.Events = { | 156 WebInspector.TimelineModel.Events = { |
| 156 RecordsCleared: "RecordsCleared", | 157 RecordsCleared: "RecordsCleared", |
| 157 RecordingStarted: "RecordingStarted", | 158 RecordingStarted: "RecordingStarted", |
| 158 RecordingStopped: "RecordingStopped", | 159 RecordingStopped: "RecordingStopped", |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 event.backendNodeId = event.args["data"]["nodeId"]; | 1126 event.backendNodeId = event.args["data"]["nodeId"]; |
| 1126 var layerUpdateEvent = this._findAncestorEvent(recordTypes.UpdateLay
er); | 1127 var layerUpdateEvent = this._findAncestorEvent(recordTypes.UpdateLay
er); |
| 1127 if (!layerUpdateEvent || layerUpdateEvent.args["layerTreeId"] !== th
is._inspectedTargetLayerTreeId) | 1128 if (!layerUpdateEvent || layerUpdateEvent.args["layerTreeId"] !== th
is._inspectedTargetLayerTreeId) |
| 1128 break; | 1129 break; |
| 1129 // Only keep layer paint events, skip paints for subframes that get
painted to the same layer as parent. | 1130 // Only keep layer paint events, skip paints for subframes that get
painted to the same layer as parent. |
| 1130 if (!event.args["data"]["layerId"]) | 1131 if (!event.args["data"]["layerId"]) |
| 1131 break; | 1132 break; |
| 1132 this._lastPaintForLayer[layerUpdateEvent.args["layerId"]] = event; | 1133 this._lastPaintForLayer[layerUpdateEvent.args["layerId"]] = event; |
| 1133 break; | 1134 break; |
| 1134 | 1135 |
| 1136 case recordTypes.DisplayItemListSnapshot: |
| 1135 case recordTypes.PictureSnapshot: | 1137 case recordTypes.PictureSnapshot: |
| 1136 var layerUpdateEvent = this._findAncestorEvent(recordTypes.UpdateLay
er); | 1138 var layerUpdateEvent = this._findAncestorEvent(recordTypes.UpdateLay
er); |
| 1137 if (!layerUpdateEvent || layerUpdateEvent.args["layerTreeId"] !== th
is._inspectedTargetLayerTreeId) | 1139 if (!layerUpdateEvent || layerUpdateEvent.args["layerTreeId"] !== th
is._inspectedTargetLayerTreeId) |
| 1138 break; | 1140 break; |
| 1139 var paintEvent = this._lastPaintForLayer[layerUpdateEvent.args["laye
rId"]]; | 1141 var paintEvent = this._lastPaintForLayer[layerUpdateEvent.args["laye
rId"]]; |
| 1140 if (paintEvent) | 1142 if (paintEvent) |
| 1141 paintEvent.picture = event; | 1143 paintEvent.picture = event; |
| 1142 break; | 1144 break; |
| 1143 | 1145 |
| 1144 case recordTypes.ScrollLayer: | 1146 case recordTypes.ScrollLayer: |
| (...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 /** @type {!Object.<string, !Array.<!WebInspector.InvalidationTrackingEv
ent>>} */ | 2077 /** @type {!Object.<string, !Array.<!WebInspector.InvalidationTrackingEv
ent>>} */ |
| 2076 this._invalidations = {}; | 2078 this._invalidations = {}; |
| 2077 /** @type {!Object.<number, !Array.<!WebInspector.InvalidationTrackingEv
ent>>} */ | 2079 /** @type {!Object.<number, !Array.<!WebInspector.InvalidationTrackingEv
ent>>} */ |
| 2078 this._invalidationsByNodeId = {}; | 2080 this._invalidationsByNodeId = {}; |
| 2079 | 2081 |
| 2080 this._lastRecalcStyle = undefined; | 2082 this._lastRecalcStyle = undefined; |
| 2081 this._lastPaintWithLayer = undefined; | 2083 this._lastPaintWithLayer = undefined; |
| 2082 this._didPaint = false; | 2084 this._didPaint = false; |
| 2083 } | 2085 } |
| 2084 } | 2086 } |
| OLD | NEW |