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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool isTrackingPaintInvalidations() const { return m_client->isTrackingPaint
Invalidations(); } | 221 bool isTrackingPaintInvalidations() const { return m_client->isTrackingPaint
Invalidations(); } |
222 void resetTrackedPaintInvalidations(); | 222 void resetTrackedPaintInvalidations(); |
223 bool hasTrackedPaintInvalidations() const; | |
224 void trackPaintInvalidationRect(const FloatRect&); | 223 void trackPaintInvalidationRect(const FloatRect&); |
225 void trackPaintInvalidationObject(const String&); | 224 void trackPaintInvalidationObject(const String&); |
226 | 225 |
227 void addLinkHighlight(LinkHighlight*); | 226 void addLinkHighlight(LinkHighlight*); |
228 void removeLinkHighlight(LinkHighlight*); | 227 void removeLinkHighlight(LinkHighlight*); |
229 // Exposed for tests | 228 // Exposed for tests |
230 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 229 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
231 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; } | 230 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; } |
232 | 231 |
233 void setScrollableArea(ScrollableArea*, bool isViewport); | 232 void setScrollableArea(ScrollableArea*, bool isViewport); |
(...skipping 12 matching lines...) Expand all Loading... |
246 void notifyAnimationFinished(double monotonicTime, int group) override; | 245 void notifyAnimationFinished(double monotonicTime, int group) override; |
247 | 246 |
248 // WebLayerScrollClient implementation. | 247 // WebLayerScrollClient implementation. |
249 void didScroll() override; | 248 void didScroll() override; |
250 | 249 |
251 DisplayItemList* displayItemList() override; | 250 DisplayItemList* displayItemList() override; |
252 | 251 |
253 // Exposed for tests. | 252 // Exposed for tests. |
254 virtual WebLayer* contentsLayer() const { return m_contentsLayer; } | 253 virtual WebLayer* contentsLayer() const { return m_contentsLayer; } |
255 | 254 |
256 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | |
257 | |
258 #ifndef NDEBUG | 255 #ifndef NDEBUG |
259 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 256 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } |
260 String debugName() const { return m_client->debugName(this) + " debug red fi
ll"; } | 257 String debugName() const { return m_client->debugName(this) + " debug red fi
ll"; } |
261 #endif | 258 #endif |
262 | 259 |
263 protected: | 260 protected: |
264 String debugName(WebLayer*) const; | 261 String debugName(WebLayer*) const; |
265 | 262 |
266 explicit GraphicsLayer(GraphicsLayerClient*); | 263 explicit GraphicsLayer(GraphicsLayerClient*); |
267 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to
be friends. | 264 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to
be friends. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 }; | 361 }; |
365 | 362 |
366 } // namespace blink | 363 } // namespace blink |
367 | 364 |
368 #ifndef NDEBUG | 365 #ifndef NDEBUG |
369 // Outside the blink namespace for ease of invocation from gdb. | 366 // Outside the blink namespace for ease of invocation from gdb. |
370 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 367 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
371 #endif | 368 #endif |
372 | 369 |
373 #endif // GraphicsLayer_h | 370 #endif // GraphicsLayer_h |
OLD | NEW |