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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 void setContentsTo(WebLayer*); | 309 void setContentsTo(WebLayer*); |
310 void setupContentsLayer(WebLayer*); | 310 void setupContentsLayer(WebLayer*); |
311 void clearContentsLayerIfUnregistered(); | 311 void clearContentsLayerIfUnregistered(); |
312 WebLayer* contentsLayerIfRegistered(); | 312 WebLayer* contentsLayerIfRegistered(); |
313 | 313 |
314 typedef HashMap<int, int> RenderingContextMap; | 314 typedef HashMap<int, int> RenderingContextMap; |
315 std::unique_ptr<JSONObject> layerTreeAsJSONInternal( | 315 std::unique_ptr<JSONObject> layerTreeAsJSONInternal( |
316 LayerTreeFlags, | 316 LayerTreeFlags, |
317 RenderingContextMap&) const; | 317 RenderingContextMap&) const; |
| 318 // Outputs the layer tree rooted at |this| as a JSON array, in paint order. |
| 319 void layersAsJSONArray(LayerTreeFlags, |
| 320 RenderingContextMap&, |
| 321 JSONArray*) const; |
| 322 std::unique_ptr<JSONObject> layerAsJSONInternal(LayerTreeFlags, |
| 323 RenderingContextMap&) const; |
318 | 324 |
319 sk_sp<SkPicture> capturePicture(); | 325 sk_sp<SkPicture> capturePicture(); |
320 void checkPaintUnderInvalidations(const SkPicture&); | 326 void checkPaintUnderInvalidations(const SkPicture&); |
321 | 327 |
322 GraphicsLayerClient* m_client; | 328 GraphicsLayerClient* m_client; |
323 | 329 |
324 // Offset from the owning layoutObject | 330 // Offset from the owning layoutObject |
325 DoubleSize m_offsetFromLayoutObject; | 331 DoubleSize m_offsetFromLayoutObject; |
326 | 332 |
327 // Position is relative to the parent GraphicsLayer | 333 // Position is relative to the parent GraphicsLayer |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 }; | 393 }; |
388 | 394 |
389 } // namespace blink | 395 } // namespace blink |
390 | 396 |
391 #ifndef NDEBUG | 397 #ifndef NDEBUG |
392 // Outside the blink namespace for ease of invocation from gdb. | 398 // Outside the blink namespace for ease of invocation from gdb. |
393 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 399 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
394 #endif | 400 #endif |
395 | 401 |
396 #endif // GraphicsLayer_h | 402 #endif // GraphicsLayer_h |
OLD | NEW |