| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 // Adds a child without calling updateChildList(), so that adding children | 307 // Adds a child without calling updateChildList(), so that adding children |
| 308 // can be batched before updating. | 308 // can be batched before updating. |
| 309 void addChildInternal(GraphicsLayer*); | 309 void addChildInternal(GraphicsLayer*); |
| 310 | 310 |
| 311 #if DCHECK_IS_ON() | 311 #if DCHECK_IS_ON() |
| 312 bool hasAncestor(GraphicsLayer*) const; | 312 bool hasAncestor(GraphicsLayer*) const; |
| 313 #endif | 313 #endif |
| 314 | 314 |
| 315 void incrementPaintCount() { ++m_paintCount; } | 315 void incrementPaintCount() { ++m_paintCount; } |
| 316 | 316 |
| 317 void notifyFirstPaintToClient(); | |
| 318 | |
| 319 // Helper functions used by settors to keep layer's the state consistent. | 317 // Helper functions used by settors to keep layer's the state consistent. |
| 320 void updateChildList(); | 318 void updateChildList(); |
| 321 void updateLayerIsDrawable(); | 319 void updateLayerIsDrawable(); |
| 322 void updateContentsRect(); | 320 void updateContentsRect(); |
| 323 | 321 |
| 324 void setContentsTo(WebLayer*); | 322 void setContentsTo(WebLayer*); |
| 325 void setupContentsLayer(WebLayer*); | 323 void setupContentsLayer(WebLayer*); |
| 326 void clearContentsLayerIfUnregistered(); | 324 void clearContentsLayerIfUnregistered(); |
| 327 WebLayer* contentsLayerIfRegistered(); | 325 WebLayer* contentsLayerIfRegistered(); |
| 328 | 326 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 }; | 411 }; |
| 414 | 412 |
| 415 } // namespace blink | 413 } // namespace blink |
| 416 | 414 |
| 417 #ifndef NDEBUG | 415 #ifndef NDEBUG |
| 418 // Outside the blink namespace for ease of invocation from gdb. | 416 // Outside the blink namespace for ease of invocation from gdb. |
| 419 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 417 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 420 #endif | 418 #endif |
| 421 | 419 |
| 422 #endif // GraphicsLayer_h | 420 #endif // GraphicsLayer_h |
| OLD | NEW |