Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: sky/engine/core/inspector/InspectorTraceEvents.cpp

Issue 763013002: Get rid of the remaining uses of GraphicsLayer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix diff Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/inspector/InspectorTraceEvents.h ('k') | sky/engine/core/loader/EmptyClients.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "sky/engine/config.h" 5 #include "sky/engine/config.h"
6 #include "sky/engine/core/inspector/InspectorTraceEvents.h" 6 #include "sky/engine/core/inspector/InspectorTraceEvents.h"
7 7
8 #include <inttypes.h> 8 #include <inttypes.h>
9 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h" 9 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h"
10 #include "sky/engine/bindings/core/v8/ScriptGCEvent.h" 10 #include "sky/engine/bindings/core/v8/ScriptGCEvent.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 static void localToPageQuad(const RenderObject& renderer, const LayoutRect& rect , FloatQuad* quad) 209 static void localToPageQuad(const RenderObject& renderer, const LayoutRect& rect , FloatQuad* quad)
210 { 210 {
211 FloatQuad absolute = renderer.localToAbsoluteQuad(FloatQuad(rect)); 211 FloatQuad absolute = renderer.localToAbsoluteQuad(FloatQuad(rect));
212 quad->setP1(roundedIntPoint(absolute.p1())); 212 quad->setP1(roundedIntPoint(absolute.p1()));
213 quad->setP2(roundedIntPoint(absolute.p2())); 213 quad->setP2(roundedIntPoint(absolute.p2()));
214 quad->setP3(roundedIntPoint(absolute.p3())); 214 quad->setP3(roundedIntPoint(absolute.p3()));
215 quad->setP4(roundedIntPoint(absolute.p4())); 215 quad->setP4(roundedIntPoint(absolute.p4()));
216 } 216 }
217 217
218 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorPaintEvent::data(Rende rObject* renderer, const LayoutRect& clipRect, const GraphicsLayer* graphicsLaye r) 218 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorPaintEvent::data(Rende rObject* renderer, const LayoutRect& clipRect)
219 { 219 {
220 RefPtr<TracedValue> value = TracedValue::create(); 220 RefPtr<TracedValue> value = TracedValue::create();
221 value->setString("frame", toHexString(renderer->frame())); 221 value->setString("frame", toHexString(renderer->frame()));
222 FloatQuad quad; 222 FloatQuad quad;
223 localToPageQuad(*renderer, clipRect, &quad); 223 localToPageQuad(*renderer, clipRect, &quad);
224 createQuad(value.get(), "clip", quad); 224 createQuad(value.get(), "clip", quad);
225 setGeneratingNodeId(value.get(), "nodeId", renderer); 225 setGeneratingNodeId(value.get(), "nodeId", renderer);
226 int graphicsLayerId = graphicsLayer ? graphicsLayer->platformLayer()->id() : 0; 226 value->setInteger("layerId", 0);
227 value->setInteger("layerId", graphicsLayerId);
228 return value; 227 return value;
229 } 228 }
230 229
231 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorMarkLoadEvent::data(Lo calFrame* frame) 230 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorMarkLoadEvent::data(Lo calFrame* frame)
232 { 231 {
233 RefPtr<TracedValue> value = TracedValue::create(); 232 RefPtr<TracedValue> value = TracedValue::create();
234 value->setString("frame", toHexString(frame)); 233 value->setString("frame", toHexString(frame));
235 return value; 234 return value;
236 } 235 }
237 236
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E xecutionContext* context, const String& message) 305 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E xecutionContext* context, const String& message)
307 { 306 {
308 RefPtr<TracedValue> value = TracedValue::create(); 307 RefPtr<TracedValue> value = TracedValue::create();
309 value->setString("message", message); 308 value->setString("message", message);
310 if (LocalFrame* frame = frameForExecutionContext(context)) 309 if (LocalFrame* frame = frameForExecutionContext(context))
311 value->setString("frame", toHexString(frame)); 310 value->setString("frame", toHexString(frame));
312 return value; 311 return value;
313 } 312 }
314 313
315 } 314 }
OLDNEW
« no previous file with comments | « sky/engine/core/inspector/InspectorTraceEvents.h ('k') | sky/engine/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698