| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 String layerTreeAsText(LayerTreeAsTextBehavior = LayerTreeAsTextBehaviorNorm
al) const; | 396 String layerTreeAsText(LayerTreeAsTextBehavior = LayerTreeAsTextBehaviorNorm
al) const; |
| 397 | 397 |
| 398 // Return an estimate of the backing store memory cost (in bytes). May be in
correct for tiled layers. | 398 // Return an estimate of the backing store memory cost (in bytes). May be in
correct for tiled layers. |
| 399 virtual double backingStoreMemoryEstimate() const; | 399 virtual double backingStoreMemoryEstimate() const; |
| 400 | 400 |
| 401 void resetTrackedRepaints(); | 401 void resetTrackedRepaints(); |
| 402 void addRepaintRect(const FloatRect&); | 402 void addRepaintRect(const FloatRect&); |
| 403 | 403 |
| 404 static bool supportsBackgroundColorContent() | 404 static bool supportsBackgroundColorContent() |
| 405 { | 405 { |
| 406 return true; | 406 return false; |
| 407 } | 407 } |
| 408 | 408 |
| 409 void updateDebugIndicators(); | 409 void updateDebugIndicators(); |
| 410 | 410 |
| 411 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | 411 virtual void reportMemoryUsage(MemoryObjectInfo*) const; |
| 412 | 412 |
| 413 protected: | 413 protected: |
| 414 // Should be called from derived class destructors. Should call willBeDestro
yed() on super. | 414 // Should be called from derived class destructors. Should call willBeDestro
yed() on super. |
| 415 virtual void willBeDestroyed(); | 415 virtual void willBeDestroyed(); |
| 416 | 416 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 496 |
| 497 | 497 |
| 498 } // namespace WebCore | 498 } // namespace WebCore |
| 499 | 499 |
| 500 #ifndef NDEBUG | 500 #ifndef NDEBUG |
| 501 // Outside the WebCore namespace for ease of invocation from gdb. | 501 // Outside the WebCore namespace for ease of invocation from gdb. |
| 502 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 502 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 503 #endif | 503 #endif |
| 504 | 504 |
| 505 #endif // GraphicsLayer_h | 505 #endif // GraphicsLayer_h |
| OLD | NEW |