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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 protected: | 254 protected: |
255 String debugName(cc::Layer*) const; | 255 String debugName(cc::Layer*) const; |
256 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } | 256 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } |
257 | 257 |
258 explicit GraphicsLayer(GraphicsLayerClient*); | 258 explicit GraphicsLayer(GraphicsLayerClient*); |
259 // for testing | 259 // for testing |
260 friend class CompositedLayerMappingTest; | 260 friend class CompositedLayerMappingTest; |
261 friend class PaintControllerPaintTestBase; | 261 friend class PaintControllerPaintTestBase; |
262 | 262 |
263 private: | 263 private: |
| 264 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 265 |
264 // Returns true if PaintController::paintArtifact() changed and needs commit
. | 266 // Returns true if PaintController::paintArtifact() changed and needs commit
. |
265 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl
edMode = GraphicsContext::NothingDisabled); | 267 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl
edMode = GraphicsContext::NothingDisabled); |
266 | 268 |
267 // Adds a child without calling updateChildList(), so that adding children | 269 // Adds a child without calling updateChildList(), so that adding children |
268 // can be batched before updating. | 270 // can be batched before updating. |
269 void addChildInternal(GraphicsLayer*); | 271 void addChildInternal(GraphicsLayer*); |
270 | 272 |
271 #if ENABLE(ASSERT) | 273 #if ENABLE(ASSERT) |
272 bool hasAncestor(GraphicsLayer*) const; | 274 bool hasAncestor(GraphicsLayer*) const; |
273 #endif | 275 #endif |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 }; | 364 }; |
363 | 365 |
364 } // namespace blink | 366 } // namespace blink |
365 | 367 |
366 #ifndef NDEBUG | 368 #ifndef NDEBUG |
367 // Outside the blink namespace for ease of invocation from gdb. | 369 // Outside the blink namespace for ease of invocation from gdb. |
368 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 370 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
369 #endif | 371 #endif |
370 | 372 |
371 #endif // GraphicsLayer_h | 373 #endif // GraphicsLayer_h |
OLD | NEW |