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

Side by Side Diff: Source/core/inspector/TimelineRecordFactory.h

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tune PID to hue magic const Created 7 years, 1 month 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 static PassRefPtr<JSONObject> createAnimationFrameData(int callbackId); 91 static PassRefPtr<JSONObject> createAnimationFrameData(int callbackId);
92 92
93 static PassRefPtr<JSONObject> createNodeData(long long nodeId); 93 static PassRefPtr<JSONObject> createNodeData(long long nodeId);
94 94
95 static PassRefPtr<JSONObject> createLayerData(long long layerRootNodeId) ; 95 static PassRefPtr<JSONObject> createLayerData(long long layerRootNodeId) ;
96 96
97 static PassRefPtr<JSONObject> createPaintData(const FloatQuad&, long lon g layerRootNodeId); 97 static PassRefPtr<JSONObject> createPaintData(const FloatQuad&, long lon g layerRootNodeId);
98 98
99 static PassRefPtr<JSONObject> createFrameData(int frameId); 99 static PassRefPtr<JSONObject> createFrameData(int frameId);
100 100
101 static PassRefPtr<JSONObject> createGPUTaskData(unsigned ownerPID);
102
101 static void appendLayoutRoot(JSONObject* data, const FloatQuad&, long lo ng rootNodeId); 103 static void appendLayoutRoot(JSONObject* data, const FloatQuad&, long lo ng rootNodeId);
102 104
103 static void appendStyleRecalcDetails(JSONObject* data, unsigned elementC ount); 105 static void appendStyleRecalcDetails(JSONObject* data, unsigned elementC ount);
104 106
105 static void appendImageDetails(JSONObject* data, long long imageElementI d, const String& url); 107 static void appendImageDetails(JSONObject* data, long long imageElementI d, const String& url);
106 108
107 static inline PassRefPtr<JSONObject> createWebSocketCreateData(unsigned long identifier, const KURL& url, const String& protocol) 109 static inline PassRefPtr<JSONObject> createWebSocketCreateData(unsigned long identifier, const KURL& url, const String& protocol)
108 { 110 {
109 RefPtr<JSONObject> data = JSONObject::create(); 111 RefPtr<JSONObject> data = JSONObject::create();
110 data->setNumber("identifier", identifier); 112 data->setNumber("identifier", identifier);
111 data->setString("url", url.string()); 113 data->setString("url", url.string());
112 if (!protocol.isNull()) 114 if (!protocol.isNull())
113 data->setString("webSocketProtocol", protocol); 115 data->setString("webSocketProtocol", protocol);
114 return data.release(); 116 return data.release();
115 } 117 }
116 118
117 static inline PassRefPtr<JSONObject> createGenericWebSocketData(unsigned long identifier) 119 static inline PassRefPtr<JSONObject> createGenericWebSocketData(unsigned long identifier)
118 { 120 {
119 RefPtr<JSONObject> data = JSONObject::create(); 121 RefPtr<JSONObject> data = JSONObject::create();
120 data->setNumber("identifier", identifier); 122 data->setNumber("identifier", identifier);
121 return data.release(); 123 return data.release();
122 } 124 }
123 private: 125 private:
124 TimelineRecordFactory() { } 126 TimelineRecordFactory() { }
125 }; 127 };
126 128
127 } // namespace WebCore 129 } // namespace WebCore
128 130
129 #endif // !defined(TimelineRecordFactory_h) 131 #endif // !defined(TimelineRecordFactory_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/inspector/TimelineRecordFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698