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