OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 typedef HashMap<int, int> RenderingContextMap; | 212 typedef HashMap<int, int> RenderingContextMap; |
213 PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, RenderingContextMap&)
const; | 213 PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, RenderingContextMap&)
const; |
214 | 214 |
215 int paintCount() const { return m_paintCount; } | 215 int paintCount() const { return m_paintCount; } |
216 | 216 |
217 // Return a string with a human readable form of the layer tree, If debug is
true | 217 // Return a string with a human readable form of the layer tree, If debug is
true |
218 // pointers for the layers and timing data will be included in the returned
string. | 218 // pointers for the layers and timing data will be included in the returned
string. |
219 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; | 219 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; |
220 | 220 |
221 void resetTrackedRepaints(); | 221 void resetTrackedPaintInvalidations(); |
222 void addRepaintRect(const FloatRect&); | 222 void addRepaintRect(const FloatRect&); |
223 | 223 |
224 void addLinkHighlight(LinkHighlightClient*); | 224 void addLinkHighlight(LinkHighlightClient*); |
225 void removeLinkHighlight(LinkHighlightClient*); | 225 void removeLinkHighlight(LinkHighlightClient*); |
226 // Exposed for tests | 226 // Exposed for tests |
227 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 227 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
228 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; } | 228 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; } |
229 | 229 |
230 void setScrollableArea(ScrollableArea*, bool isMainFrame); | 230 void setScrollableArea(ScrollableArea*, bool isMainFrame); |
231 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 231 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 }; | 347 }; |
348 | 348 |
349 } // namespace blink | 349 } // namespace blink |
350 | 350 |
351 #ifndef NDEBUG | 351 #ifndef NDEBUG |
352 // Outside the WebCore namespace for ease of invocation from gdb. | 352 // Outside the WebCore namespace for ease of invocation from gdb. |
353 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 353 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
354 #endif | 354 #endif |
355 | 355 |
356 #endif // GraphicsLayer_h | 356 #endif // GraphicsLayer_h |
OLD | NEW |