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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 friend class blink::GraphicsLayerFactoryChromium; | 265 friend class blink::GraphicsLayerFactoryChromium; |
266 | 266 |
267 // Exposed for tests. | 267 // Exposed for tests. |
268 virtual blink::WebLayer* contentsLayer() const { return m_contentsLayer; } | 268 virtual blink::WebLayer* contentsLayer() const { return m_contentsLayer; } |
269 | 269 |
270 private: | 270 private: |
271 // Adds a child without calling updateChildList(), so that adding children | 271 // Adds a child without calling updateChildList(), so that adding children |
272 // can be batched before updating. | 272 // can be batched before updating. |
273 void addChildInternal(GraphicsLayer*); | 273 void addChildInternal(GraphicsLayer*); |
274 | 274 |
275 #if ASSERT_ENABLED | 275 #if ENABLE(ASSERT) |
276 bool hasAncestor(GraphicsLayer*) const; | 276 bool hasAncestor(GraphicsLayer*) const; |
277 #endif | 277 #endif |
278 | 278 |
279 // This method is used by platform GraphicsLayer classes to clear the filter
s | 279 // This method is used by platform GraphicsLayer classes to clear the filter
s |
280 // when compositing is not done in hardware. It is not virtual, so the calle
r | 280 // when compositing is not done in hardware. It is not virtual, so the calle
r |
281 // needs to notifiy the change to the platform layer as needed. | 281 // needs to notifiy the change to the platform layer as needed. |
282 void clearFilters() { m_filters.clear(); } | 282 void clearFilters() { m_filters.clear(); } |
283 | 283 |
284 void setReplicatedLayer(GraphicsLayer* layer) { m_replicatedLayer = layer; } | 284 void setReplicatedLayer(GraphicsLayer* layer) { m_replicatedLayer = layer; } |
285 | 285 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 }; | 364 }; |
365 | 365 |
366 } // namespace WebCore | 366 } // namespace WebCore |
367 | 367 |
368 #ifndef NDEBUG | 368 #ifndef NDEBUG |
369 // Outside the WebCore namespace for ease of invocation from gdb. | 369 // Outside the WebCore namespace for ease of invocation from gdb. |
370 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); | 370 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); |
371 #endif | 371 #endif |
372 | 372 |
373 #endif // GraphicsLayer_h | 373 #endif // GraphicsLayer_h |
OLD | NEW |