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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 { | 250 { |
251 LocalFrame* frame = renderer.frame(); | 251 LocalFrame* frame = renderer.frame(); |
252 FrameView* view = frame->view(); | 252 FrameView* view = frame->view(); |
253 FloatQuad absolute = renderer.localToAbsoluteQuad(FloatQuad(rect)); | 253 FloatQuad absolute = renderer.localToAbsoluteQuad(FloatQuad(rect)); |
254 quad->setP1(view->contentsToRootView(roundedIntPoint(absolute.p1()))); | 254 quad->setP1(view->contentsToRootView(roundedIntPoint(absolute.p1()))); |
255 quad->setP2(view->contentsToRootView(roundedIntPoint(absolute.p2()))); | 255 quad->setP2(view->contentsToRootView(roundedIntPoint(absolute.p2()))); |
256 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); | 256 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); |
257 quad->setP4(view->contentsToRootView(roundedIntPoint(absolute.p4()))); | 257 quad->setP4(view->contentsToRootView(roundedIntPoint(absolute.p4()))); |
258 } | 258 } |
259 | 259 |
260 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd ated[] = "Squashing layer geometry was updated."; | |
pdr.
2014/09/12 04:07:17
I'm a little worried about using the word "Squashi
kouhei (in TOK)
2014/09/12 05:02:12
Understood.
| |
261 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T he layer may have been added to an already-existing squashing layer."; | |
262 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[] = "Removed the layer from a squashing layer."; | |
263 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = " Reflection layer change."; | |
264 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi gned a new composited layer."; | |
265 const char InspectorLayerInvalidationTrackingEvent::AncestorRequiresNewLayer[] = "A new composited layer is needed based on the RenderLayer's compositing ancest or's properties."; | |
266 | |
267 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack ingEvent::data(const RenderObject* paintInvalidationContainer, const char* reaso n) | |
268 { | |
269 RefPtr<TracedValue> value = TracedValue::create(); | |
270 value->setString("frame", toHexString(paintInvalidationContainer->frame())); | |
271 setGeneratingNodeId(value.get(), "paintId", paintInvalidationContainer); | |
272 value->setString("reason", reason); | |
273 return value; | |
274 } | |
275 | |
260 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorPaintEvent::data(Rende rObject* renderer, const LayoutRect& clipRect, const GraphicsLayer* graphicsLaye r) | 276 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorPaintEvent::data(Rende rObject* renderer, const LayoutRect& clipRect, const GraphicsLayer* graphicsLaye r) |
261 { | 277 { |
262 RefPtr<TracedValue> value = TracedValue::create(); | 278 RefPtr<TracedValue> value = TracedValue::create(); |
263 value->setString("frame", toHexString(renderer->frame())); | 279 value->setString("frame", toHexString(renderer->frame())); |
264 FloatQuad quad; | 280 FloatQuad quad; |
265 localToPageQuad(*renderer, clipRect, &quad); | 281 localToPageQuad(*renderer, clipRect, &quad); |
266 createQuad(value.get(), "clip", quad); | 282 createQuad(value.get(), "clip", quad); |
267 setGeneratingNodeId(value.get(), "nodeId", renderer); | 283 setGeneratingNodeId(value.get(), "nodeId", renderer); |
268 int graphicsLayerId = graphicsLayer ? graphicsLayer->platformLayer()->id() : 0; | 284 int graphicsLayerId = graphicsLayer ? graphicsLayer->platformLayer()->id() : 0; |
269 value->setInteger("layerId", graphicsLayerId); | 285 value->setInteger("layerId", graphicsLayerId); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
358 | 374 |
359 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingSessionIdForWor kerEvent::data(const String& sessionId, WorkerThread* workerThread) | 375 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingSessionIdForWor kerEvent::data(const String& sessionId, WorkerThread* workerThread) |
360 { | 376 { |
361 RefPtr<TracedValue> value = TracedValue::create(); | 377 RefPtr<TracedValue> value = TracedValue::create(); |
362 value->setString("sessionId", sessionId); | 378 value->setString("sessionId", sessionId); |
363 value->setDouble("workerThreadId", workerThread->platformThreadId()); | 379 value->setDouble("workerThreadId", workerThread->platformThreadId()); |
364 return value; | 380 return value; |
365 } | 381 } |
366 | 382 |
367 } | 383 } |
OLD | NEW |