| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 class GraphicsContext; | 34 class GraphicsContext; |
| 35 class GraphicsLayer; | 35 class GraphicsLayer; |
| 36 class IntRect; | 36 class IntRect; |
| 37 | 37 |
| 38 enum GraphicsLayerPaintingPhaseFlags { | 38 enum GraphicsLayerPaintingPhaseFlags { |
| 39 GraphicsLayerPaintBackground = (1 << 0), | 39 GraphicsLayerPaintBackground = (1 << 0), |
| 40 GraphicsLayerPaintForeground = (1 << 1), | 40 GraphicsLayerPaintForeground = (1 << 1), |
| 41 GraphicsLayerPaintMask = (1 << 2), | 41 GraphicsLayerPaintMask = (1 << 2), |
| 42 GraphicsLayerPaintOverflowContents = (1 << 3), | 42 GraphicsLayerPaintOverflowContents = (1 << 3), |
| 43 GraphicsLayerPaintCompositedScroll = (1 << 4), | 43 // FIXME(sky): 4 is unused. |
| 44 GraphicsLayerPaintChildClippingMask = (1 << 5), | 44 GraphicsLayerPaintChildClippingMask = (1 << 5), |
| 45 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap
hicsLayerPaintForeground | GraphicsLayerPaintMask) | 45 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap
hicsLayerPaintForeground | GraphicsLayerPaintMask) |
| 46 }; | 46 }; |
| 47 typedef unsigned GraphicsLayerPaintingPhase; | 47 typedef unsigned GraphicsLayerPaintingPhase; |
| 48 | 48 |
| 49 enum { | 49 enum { |
| 50 LayerTreeNormal = 0, | 50 LayerTreeNormal = 0, |
| 51 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. | 51 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. |
| 52 LayerTreeIncludesPaintInvalidationRects = 1 << 1, | 52 LayerTreeIncludesPaintInvalidationRects = 1 << 1, |
| 53 LayerTreeIncludesPaintingPhases = 1 << 2, | 53 LayerTreeIncludesPaintingPhases = 1 << 2, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 74 // This is executed in GraphicsLayer construction and destruction | 74 // This is executed in GraphicsLayer construction and destruction |
| 75 // to verify that we don't create or destroy GraphicsLayers | 75 // to verify that we don't create or destroy GraphicsLayers |
| 76 // while painting. | 76 // while painting. |
| 77 virtual void verifyNotPainting() { } | 77 virtual void verifyNotPainting() { } |
| 78 #endif | 78 #endif |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace blink | 81 } // namespace blink |
| 82 | 82 |
| 83 #endif // GraphicsLayerClient_h | 83 #endif // GraphicsLayerClient_h |
| OLD | NEW |