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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 quad->setP2(view->contentsToRootView(roundedIntPoint(absolute.p2()))); | 485 quad->setP2(view->contentsToRootView(roundedIntPoint(absolute.p2()))); |
486 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); | 486 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); |
487 quad->setP4(view->contentsToRootView(roundedIntPoint(absolute.p4()))); | 487 quad->setP4(view->contentsToRootView(roundedIntPoint(absolute.p4()))); |
488 } | 488 } |
489 | 489 |
490 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd
ated[] = "Squashing layer geometry was updated"; | 490 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd
ated[] = "Squashing layer geometry was updated"; |
491 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T
he layer may have been added to an already-existing squashing layer"; | 491 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T
he layer may have been added to an already-existing squashing layer"; |
492 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[]
= "Removed the layer from a squashing layer"; | 492 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[]
= "Removed the layer from a squashing layer"; |
493 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = "
Reflection layer change"; | 493 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = "
Reflection layer change"; |
494 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi
gned a new composited layer"; | 494 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi
gned a new composited layer"; |
495 const char InspectorLayerInvalidationTrackingEvent::AncestorRequiresNewLayer[] =
"A new composited layer is needed based on the RenderLayer's compositing ancest
or's properties"; | |
496 | 495 |
497 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const RenderLayer* layer, const char* reason) | 496 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const RenderLayer* layer, const char* reason) |
498 { | 497 { |
499 const RenderObject* paintInvalidationContainer = layer->renderer()->containe
rForPaintInvalidation(); | 498 const RenderObject* paintInvalidationContainer = layer->renderer()->containe
rForPaintInvalidation(); |
500 | 499 |
501 RefPtr<TracedValue> value = TracedValue::create(); | 500 RefPtr<TracedValue> value = TracedValue::create(); |
502 value->setString("frame", toHexString(paintInvalidationContainer->frame())); | 501 value->setString("frame", toHexString(paintInvalidationContainer->frame())); |
503 setGeneratingNodeInfo(value.get(), paintInvalidationContainer, "paintId"); | 502 setGeneratingNodeInfo(value.get(), paintInvalidationContainer, "paintId"); |
504 value->setString("reason", reason); | 503 value->setString("reason", reason); |
505 return value.release(); | 504 return value.release(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 | 605 |
607 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingSessionIdForWor
kerEvent::data(const String& sessionId, WorkerThread* workerThread) | 606 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingSessionIdForWor
kerEvent::data(const String& sessionId, WorkerThread* workerThread) |
608 { | 607 { |
609 RefPtr<TracedValue> value = TracedValue::create(); | 608 RefPtr<TracedValue> value = TracedValue::create(); |
610 value->setString("sessionId", sessionId); | 609 value->setString("sessionId", sessionId); |
611 value->setDouble("workerThreadId", workerThread->platformThreadId()); | 610 value->setDouble("workerThreadId", workerThread->platformThreadId()); |
612 return value.release(); | 611 return value.release(); |
613 } | 612 } |
614 | 613 |
615 } | 614 } |
OLD | NEW |