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

Side by Side Diff: Source/core/inspector/InspectorTimelineAgent.cpp

Issue 16878004: DevTools: add instrumentation for deferred canvas rasterization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 , m_memoryAgent(memoryAgent) 737 , m_memoryAgent(memoryAgent)
738 , m_domAgent(domAgent) 738 , m_domAgent(domAgent)
739 , m_frontend(0) 739 , m_frontend(0)
740 , m_id(1) 740 , m_id(1)
741 , m_maxCallStackDepth(5) 741 , m_maxCallStackDepth(5)
742 , m_platformInstrumentationClientInstalledAtStackDepth(0) 742 , m_platformInstrumentationClientInstalledAtStackDepth(0)
743 , m_inspectorType(type) 743 , m_inspectorType(type)
744 , m_client(client) 744 , m_client(client)
745 , m_weakFactory(this) 745 , m_weakFactory(this)
746 , m_styleRecalcElementCounter(0) 746 , m_styleRecalcElementCounter(0)
747 , m_layerTreeId(0)
747 { 748 {
748 } 749 }
749 750
750 void InspectorTimelineAgent::appendRecord(PassRefPtr<JSONObject> data, const Str ing& type, bool captureCallStack, Frame* frame) 751 void InspectorTimelineAgent::appendRecord(PassRefPtr<JSONObject> data, const Str ing& type, bool captureCallStack, Frame* frame)
751 { 752 {
752 pushGCEventRecords(); 753 pushGCEventRecords();
753 RefPtr<JSONObject> record = TimelineRecordFactory::createGenericRecord(times tamp(), captureCallStack ? m_maxCallStackDepth : 0, type); 754 RefPtr<JSONObject> record = TimelineRecordFactory::createGenericRecord(times tamp(), captureCallStack ? m_maxCallStackDepth : 0, type);
754 record->setObject("data", data); 755 record->setObject("data", data);
755 setFrameIdentifier(record.get(), frame); 756 setFrameIdentifier(record.get(), frame);
756 addRecordToTimeline(record.release()); 757 addRecordToTimeline(record.release());
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 return m_timeConverter.fromMonotonicallyIncreasingTime(WTF::monotonicallyInc reasingTime()); 825 return m_timeConverter.fromMonotonicallyIncreasingTime(WTF::monotonicallyInc reasingTime());
825 } 826 }
826 827
827 Page* InspectorTimelineAgent::page() 828 Page* InspectorTimelineAgent::page()
828 { 829 {
829 return m_pageAgent ? m_pageAgent->page() : 0; 830 return m_pageAgent ? m_pageAgent->page() : 0;
830 } 831 }
831 832
832 } // namespace WebCore 833 } // namespace WebCore
833 834
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698