| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 void setElementId(uint64_t); | 244 void setElementId(uint64_t); |
| 245 void setCompositorMutableProperties(uint32_t); | 245 void setCompositorMutableProperties(uint32_t); |
| 246 | 246 |
| 247 static void setDrawDebugRedFillForTesting(bool); | 247 static void setDrawDebugRedFillForTesting(bool); |
| 248 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | 248 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } |
| 249 | 249 |
| 250 // DisplayItemClient methods | 250 // DisplayItemClient methods |
| 251 String debugName() const final { return m_client->debugName(this); } | 251 String debugName() const final { return m_client->debugName(this); } |
| 252 LayoutRect visualRect() const override; | 252 LayoutRect visualRect() const override; |
| 253 | 253 |
| 254 void setCanUseClientCacheStatus(bool); |
| 255 |
| 254 protected: | 256 protected: |
| 255 String debugName(cc::Layer*) const; | 257 String debugName(cc::Layer*) const; |
| 256 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } | 258 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } |
| 257 | 259 |
| 258 explicit GraphicsLayer(GraphicsLayerClient*); | 260 explicit GraphicsLayer(GraphicsLayerClient*); |
| 259 // for testing | 261 // for testing |
| 260 friend class CompositedLayerMappingTest; | 262 friend class CompositedLayerMappingTest; |
| 261 friend class PaintControllerPaintTestBase; | 263 friend class PaintControllerPaintTestBase; |
| 262 | 264 |
| 263 private: | 265 private: |
| 266 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 267 |
| 264 // Returns true if PaintController::paintArtifact() changed and needs commit
. | 268 // Returns true if PaintController::paintArtifact() changed and needs commit
. |
| 265 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl
edMode = GraphicsContext::NothingDisabled); | 269 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl
edMode = GraphicsContext::NothingDisabled); |
| 266 | 270 |
| 267 // Adds a child without calling updateChildList(), so that adding children | 271 // Adds a child without calling updateChildList(), so that adding children |
| 268 // can be batched before updating. | 272 // can be batched before updating. |
| 269 void addChildInternal(GraphicsLayer*); | 273 void addChildInternal(GraphicsLayer*); |
| 270 | 274 |
| 271 #if ENABLE(ASSERT) | 275 #if ENABLE(ASSERT) |
| 272 bool hasAncestor(GraphicsLayer*) const; | 276 bool hasAncestor(GraphicsLayer*) const; |
| 273 #endif | 277 #endif |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 }; | 366 }; |
| 363 | 367 |
| 364 } // namespace blink | 368 } // namespace blink |
| 365 | 369 |
| 366 #ifndef NDEBUG | 370 #ifndef NDEBUG |
| 367 // Outside the blink namespace for ease of invocation from gdb. | 371 // Outside the blink namespace for ease of invocation from gdb. |
| 368 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 372 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 369 #endif | 373 #endif |
| 370 | 374 |
| 371 #endif // GraphicsLayer_h | 375 #endif // GraphicsLayer_h |
| OLD | NEW |