| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/inspector/InspectorTraceEvents.h" | 6 #include "core/inspector/InspectorTraceEvents.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptCallStackFactory.h" | 8 #include "bindings/core/v8/ScriptCallStackFactory.h" |
| 9 #include "bindings/core/v8/ScriptGCEvent.h" | 9 #include "bindings/core/v8/ScriptGCEvent.h" |
| 10 #include "bindings/core/v8/ScriptSourceCode.h" | 10 #include "bindings/core/v8/ScriptSourceCode.h" |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 } | 505 } |
| 506 | 506 |
| 507 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd
ated[] = "Squashing layer geometry was updated"; | 507 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd
ated[] = "Squashing layer geometry was updated"; |
| 508 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T
he layer may have been added to an already-existing squashing layer"; | 508 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T
he layer may have been added to an already-existing squashing layer"; |
| 509 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[]
= "Removed the layer from a squashing layer"; | 509 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[]
= "Removed the layer from a squashing layer"; |
| 510 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = "
Reflection layer change"; | 510 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = "
Reflection layer change"; |
| 511 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi
gned a new composited layer"; | 511 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi
gned a new composited layer"; |
| 512 | 512 |
| 513 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const Layer* layer, const char* reason) | 513 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const Layer* layer, const char* reason) |
| 514 { | 514 { |
| 515 const LayoutObject* paintInvalidationContainer = layer->renderer()->containe
rForPaintInvalidation(); | 515 const LayoutObject* paintInvalidationContainer = layer->layoutObject()->cont
ainerForPaintInvalidation(); |
| 516 | 516 |
| 517 RefPtr<TracedValue> value = TracedValue::create(); | 517 RefPtr<TracedValue> value = TracedValue::create(); |
| 518 value->setString("frame", toHexString(paintInvalidationContainer->frame())); | 518 value->setString("frame", toHexString(paintInvalidationContainer->frame())); |
| 519 setGeneratingNodeInfo(value.get(), paintInvalidationContainer, "paintId"); | 519 setGeneratingNodeInfo(value.get(), paintInvalidationContainer, "paintId"); |
| 520 value->setString("reason", reason); | 520 value->setString("reason", reason); |
| 521 return value.release(); | 521 return value.release(); |
| 522 } | 522 } |
| 523 | 523 |
| 524 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorPaintEvent::data(Layou
tObject* renderer, const LayoutRect& clipRect, const GraphicsLayer* graphicsLaye
r) | 524 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorPaintEvent::data(Layou
tObject* renderer, const LayoutRect& clipRect, const GraphicsLayer* graphicsLaye
r) |
| 525 { | 525 { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 712 } |
| 713 | 713 |
| 714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) | 714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) |
| 715 { | 715 { |
| 716 RefPtr<TracedValue> value = TracedValue::create(); | 716 RefPtr<TracedValue> value = TracedValue::create(); |
| 717 value->setString("state", player.playState()); | 717 value->setString("state", player.playState()); |
| 718 return value.release(); | 718 return value.release(); |
| 719 } | 719 } |
| 720 | 720 |
| 721 } | 721 } |
| OLD | NEW |