| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 void setElementId(uint64_t); | 262 void setElementId(uint64_t); |
| 263 void setCompositorMutableProperties(uint32_t); | 263 void setCompositorMutableProperties(uint32_t); |
| 264 | 264 |
| 265 static void setDrawDebugRedFillForTesting(bool); | 265 static void setDrawDebugRedFillForTesting(bool); |
| 266 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | 266 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } |
| 267 | 267 |
| 268 // DisplayItemClient methods | 268 // DisplayItemClient methods |
| 269 String debugName() const final { return m_client->debugName(this); } | 269 String debugName() const final { return m_client->debugName(this); } |
| 270 IntRect visualRect() const override; | 270 IntRect visualRect() const override; |
| 271 | 271 |
| 272 void setCanUseClientCacheStatus(bool); |
| 273 |
| 272 protected: | 274 protected: |
| 273 String debugName(cc::Layer*) const; | 275 String debugName(cc::Layer*) const; |
| 274 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } | 276 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } |
| 275 | 277 |
| 276 explicit GraphicsLayer(GraphicsLayerClient*); | 278 explicit GraphicsLayer(GraphicsLayerClient*); |
| 277 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to
be friends. | 279 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to
be friends. |
| 278 friend class GraphicsLayerFactoryChromium; | 280 friend class GraphicsLayerFactoryChromium; |
| 279 // for testing | 281 // for testing |
| 280 friend class CompositedLayerMappingTest; | 282 friend class CompositedLayerMappingTest; |
| 281 friend class FakeGraphicsLayerFactory; | 283 friend class FakeGraphicsLayerFactory; |
| 282 friend class PaintControllerPaintTestBase; | 284 friend class PaintControllerPaintTestBase; |
| 283 | 285 |
| 284 private: | 286 private: |
| 287 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 288 |
| 285 // Returns true if PaintController::paintArtifact() changed and needs commit
. | 289 // Returns true if PaintController::paintArtifact() changed and needs commit
. |
| 286 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl
edMode = GraphicsContext::NothingDisabled); | 290 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl
edMode = GraphicsContext::NothingDisabled); |
| 287 | 291 |
| 288 // Adds a child without calling updateChildList(), so that adding children | 292 // Adds a child without calling updateChildList(), so that adding children |
| 289 // can be batched before updating. | 293 // can be batched before updating. |
| 290 void addChildInternal(GraphicsLayer*); | 294 void addChildInternal(GraphicsLayer*); |
| 291 | 295 |
| 292 #if ENABLE(ASSERT) | 296 #if ENABLE(ASSERT) |
| 293 bool hasAncestor(GraphicsLayer*) const; | 297 bool hasAncestor(GraphicsLayer*) const; |
| 294 #endif | 298 #endif |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 }; | 389 }; |
| 386 | 390 |
| 387 } // namespace blink | 391 } // namespace blink |
| 388 | 392 |
| 389 #ifndef NDEBUG | 393 #ifndef NDEBUG |
| 390 // Outside the blink namespace for ease of invocation from gdb. | 394 // Outside the blink namespace for ease of invocation from gdb. |
| 391 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 395 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 392 #endif | 396 #endif |
| 393 | 397 |
| 394 #endif // GraphicsLayer_h | 398 #endif // GraphicsLayer_h |
| OLD | NEW |