| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 PaintController* paintController() override; | 257 PaintController* paintController() override; |
| 258 | 258 |
| 259 // Exposed for tests. | 259 // Exposed for tests. |
| 260 WebLayer* contentsLayer() const { return m_contentsLayer; } | 260 WebLayer* contentsLayer() const { return m_contentsLayer; } |
| 261 | 261 |
| 262 static void setDrawDebugRedFillForTesting(bool); | 262 static void setDrawDebugRedFillForTesting(bool); |
| 263 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | 263 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } |
| 264 | 264 |
| 265 #ifndef NDEBUG | 265 #ifndef NDEBUG |
| 266 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 266 DisplayItemClient displayItemClient() const { return DisplayItemClient(this)
; } |
| 267 String debugName() const { return m_client->debugName(this) + " debug red fi
ll"; } | 267 String debugName() const { return m_client->debugName(this) + " debug red fi
ll"; } |
| 268 #endif | 268 #endif |
| 269 | 269 |
| 270 protected: | 270 protected: |
| 271 String debugName(WebLayer*) const; | 271 String debugName(WebLayer*) const; |
| 272 | 272 |
| 273 explicit GraphicsLayer(GraphicsLayerClient*); | 273 explicit GraphicsLayer(GraphicsLayerClient*); |
| 274 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to
be friends. | 274 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to
be friends. |
| 275 friend class GraphicsLayerFactoryChromium; | 275 friend class GraphicsLayerFactoryChromium; |
| 276 // for testing | 276 // for testing |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 }; | 375 }; |
| 376 | 376 |
| 377 } // namespace blink | 377 } // namespace blink |
| 378 | 378 |
| 379 #ifndef NDEBUG | 379 #ifndef NDEBUG |
| 380 // Outside the blink namespace for ease of invocation from gdb. | 380 // Outside the blink namespace for ease of invocation from gdb. |
| 381 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 381 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 382 #endif | 382 #endif |
| 383 | 383 |
| 384 #endif // GraphicsLayer_h | 384 #endif // GraphicsLayer_h |
| OLD | NEW |