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

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

Issue 319603007: DevTools: Add snapshot command log on the frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Called from the front-end. 72 // Called from the front-end.
73 virtual void enable(ErrorString*) OVERRIDE; 73 virtual void enable(ErrorString*) OVERRIDE;
74 virtual void disable(ErrorString*) OVERRIDE; 74 virtual void disable(ErrorString*) OVERRIDE;
75 virtual void compositingReasons(ErrorString*, const String& layerId, RefPtr< TypeBuilder::Array<String> >&) OVERRIDE; 75 virtual void compositingReasons(ErrorString*, const String& layerId, RefPtr< TypeBuilder::Array<String> >&) OVERRIDE;
76 virtual void makeSnapshot(ErrorString*, const String& layerId, String* snaps hotId) OVERRIDE; 76 virtual void makeSnapshot(ErrorString*, const String& layerId, String* snaps hotId) OVERRIDE;
77 virtual void loadSnapshot(ErrorString*, const String& data, String* snapshot Id) OVERRIDE; 77 virtual void loadSnapshot(ErrorString*, const String& data, String* snapshot Id) OVERRIDE;
78 virtual void releaseSnapshot(ErrorString*, const String& snapshotId) OVERRID E; 78 virtual void releaseSnapshot(ErrorString*, const String& snapshotId) OVERRID E;
79 virtual void replaySnapshot(ErrorString*, const String& snapshotId, const in t* fromStep, const int* toStep, String* dataURL) OVERRIDE; 79 virtual void replaySnapshot(ErrorString*, const String& snapshotId, const in t* fromStep, const int* toStep, String* dataURL) OVERRIDE;
80 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; 80 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE;
81 virtual void snapshotCommandLog(ErrorString*, const String& snapshotId, RefP tr<TypeBuilder::Array<JSONObject> >&) OVERRIDE; 81 virtual void snapshotCommandLog(ErrorString*, const String& snapshotId, cons t int* fromStep, const int* toStep, RefPtr<TypeBuilder::Array<JSONObject> >&) OV ERRIDE;
caseq 2014/06/05 06:00:53 we can select necessary step range on the front-en
malch 2014/06/05 07:36:46 Done.
82 82
83 // Called by other agents. 83 // Called by other agents.
84 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e(); 84 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e();
85 85
86 private: 86 private:
87 static unsigned s_lastSnapshotId; 87 static unsigned s_lastSnapshotId;
88 88
89 explicit InspectorLayerTreeAgent(Page*); 89 explicit InspectorLayerTreeAgent(Page*);
90 90
91 RenderLayerCompositor* renderLayerCompositor(); 91 RenderLayerCompositor* renderLayerCompositor();
(...skipping 10 matching lines...) Expand all
102 Vector<int, 2> m_pageOverlayLayerIds; 102 Vector<int, 2> m_pageOverlayLayerIds;
103 103
104 typedef HashMap<String, RefPtr<GraphicsContextSnapshot> > SnapshotById; 104 typedef HashMap<String, RefPtr<GraphicsContextSnapshot> > SnapshotById;
105 SnapshotById m_snapshotById; 105 SnapshotById m_snapshotById;
106 }; 106 };
107 107
108 } // namespace WebCore 108 } // namespace WebCore
109 109
110 110
111 #endif // !defined(InspectorLayerTreeAgent_h) 111 #endif // !defined(InspectorLayerTreeAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698