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

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

Issue 166273018: Added showing slow scroll rectangles in Layers panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Few more fixes. Created 6 years, 10 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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; 77 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE;
78 78
79 private: 79 private:
80 static unsigned s_lastSnapshotId; 80 static unsigned s_lastSnapshotId;
81 81
82 InspectorLayerTreeAgent(InspectorDOMAgent*, Page*); 82 InspectorLayerTreeAgent(InspectorDOMAgent*, Page*);
83 83
84 RenderLayerCompositor* renderLayerCompositor(); 84 RenderLayerCompositor* renderLayerCompositor();
85 GraphicsLayer* layerById(ErrorString*, const String& layerId); 85 GraphicsLayer* layerById(ErrorString*, const String& layerId);
86 const LayerSnapshot* snapshotById(ErrorString*, const String& snapshotId); 86 const LayerSnapshot* snapshotById(ErrorString*, const String& snapshotId);
87 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e(); 87 bool buildLayerTree(TypeBuilder::Array<TypeBuilder::LayerTree::Layer>& layer s,
caseq 2014/02/20 16:30:45 style: drop self-obvious argument names from the m
malch 2014/02/21 12:22:15 Done.
88 TypeBuilder::Array<TypeBuilder::LayerTree::ScrollRect>& scrollRects);
caseq 2014/02/20 16:30:45 ditto
malch 2014/02/21 12:22:15 Done.
88 89
89 typedef HashMap<int, int> LayerIdToNodeIdMap; 90 typedef HashMap<int, int> LayerIdToNodeIdMap;
90 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); 91 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&);
91 int idForNode(Node*); 92 int idForNode(Node*);
92 93
93 InspectorFrontend::LayerTree* m_frontend; 94 InspectorFrontend::LayerTree* m_frontend;
94 Page* m_page; 95 Page* m_page;
95 InspectorDOMAgent* m_domAgent; 96 InspectorDOMAgent* m_domAgent;
96 97
97 typedef HashMap<String, LayerSnapshot> SnapshotById; 98 typedef HashMap<String, LayerSnapshot> SnapshotById;
98 SnapshotById m_snapshotById; 99 SnapshotById m_snapshotById;
99 }; 100 };
100 101
101 } // namespace WebCore 102 } // namespace WebCore
102 103
103 104
104 #endif // !defined(InspectorLayerTreeAgent_h) 105 #endif // !defined(InspectorLayerTreeAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | Source/devtools/front_end/LayerTreeModel.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698