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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void setContentsToPlatformLayer(blink::WebLayer* layer) { setContentsTo(laye
r); } | 216 void setContentsToPlatformLayer(blink::WebLayer* layer) { setContentsTo(laye
r); } |
217 bool hasContentsLayer() const { return m_contentsLayer; } | 217 bool hasContentsLayer() const { return m_contentsLayer; } |
218 | 218 |
219 // Callback from the underlying graphics system to draw layer contents. | 219 // Callback from the underlying graphics system to draw layer contents. |
220 void paintGraphicsLayerContents(GraphicsContext&, const IntRect& clip); | 220 void paintGraphicsLayerContents(GraphicsContext&, const IntRect& clip); |
221 | 221 |
222 // For hosting this GraphicsLayer in a native layer hierarchy. | 222 // For hosting this GraphicsLayer in a native layer hierarchy. |
223 blink::WebLayer* platformLayer() const; | 223 blink::WebLayer* platformLayer() const; |
224 | 224 |
225 typedef HashMap<int, int> RenderingContextMap; | 225 typedef HashMap<int, int> RenderingContextMap; |
226 PassRefPtrWillBeRawPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, Rendering
ContextMap&) const; | 226 PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, RenderingContextMap&)
const; |
227 | 227 |
228 int paintCount() const { return m_paintCount; } | 228 int paintCount() const { return m_paintCount; } |
229 | 229 |
230 // Return a string with a human readable form of the layer tree, If debug is
true | 230 // Return a string with a human readable form of the layer tree, If debug is
true |
231 // pointers for the layers and timing data will be included in the returned
string. | 231 // pointers for the layers and timing data will be included in the returned
string. |
232 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; | 232 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; |
233 String debugName(blink::WebLayer*) const; | 233 String debugName(blink::WebLayer*) const; |
234 | 234 |
235 void resetTrackedRepaints(); | 235 void resetTrackedRepaints(); |
236 void addRepaintRect(const FloatRect&); | 236 void addRepaintRect(const FloatRect&); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 }; | 366 }; |
367 | 367 |
368 } // namespace WebCore | 368 } // namespace WebCore |
369 | 369 |
370 #ifndef NDEBUG | 370 #ifndef NDEBUG |
371 // Outside the WebCore namespace for ease of invocation from gdb. | 371 // Outside the WebCore namespace for ease of invocation from gdb. |
372 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); | 372 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); |
373 #endif | 373 #endif |
374 | 374 |
375 #endif // GraphicsLayer_h | 375 #endif // GraphicsLayer_h |
OLD | NEW |