Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 PaintPhaseCollapsedTableBorders = 9, | 50 PaintPhaseCollapsedTableBorders = 9, |
| 51 PaintPhaseTextClip = 10, | 51 PaintPhaseTextClip = 10, |
| 52 PaintPhaseMask = 11, | 52 PaintPhaseMask = 11, |
| 53 PaintPhaseClippingMask = 12, | 53 PaintPhaseClippingMask = 12, |
| 54 PaintPhaseMax = PaintPhaseClippingMask, | 54 PaintPhaseMax = PaintPhaseClippingMask, |
| 55 // These values must be kept in sync with DisplayItem::Type and DisplayItem: :typeAsDebugString(). | 55 // These values must be kept in sync with DisplayItem::Type and DisplayItem: :typeAsDebugString(). |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 enum PaintBehaviorFlags { | 58 enum PaintBehaviorFlags { |
| 59 PaintBehaviorNormal = 0, | 59 PaintBehaviorNormal = 0, |
| 60 PaintBehaviorSelectionOnly = 1 << 0, | |
| 61 PaintBehaviorFlattenCompositingLayers = 1 << 2, | |
| 62 PaintBehaviorRenderingClipPathAsMask = 1 << 3, | 60 PaintBehaviorRenderingClipPathAsMask = 1 << 3, |
| 63 PaintBehaviorSkipRootBackground = 1 << 4, | 61 PaintBehaviorSkipRootBackground = 1 << 4, |
| 64 PaintBehaviorRootBackgroundOnly = 1 << 5 | 62 PaintBehaviorRootBackgroundOnly = 1 << 5 |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 typedef unsigned PaintBehavior; | 65 typedef unsigned PaintBehavior; |
| 68 | 66 |
| 67 // Those flags are meant as global tree operations. This means | |
| 68 // that they should be constant for a paint phase. | |
| 69 // TODO(jchaffraix): We should pass these as a const variable | |
|
leviw_travelin_and_unemployed
2015/07/07 20:33:16
GoodFirstBug? :p
| |
| 70 // during paint to ensure they are not modified. | |
| 71 enum GlobalPaintFlag { | |
| 72 GlobalPaintNoFlag = 0, | |
|
leviw_travelin_and_unemployed
2015/07/07 20:33:16
What does this mean? How do we expect the system t
Julien - ping for review
2015/07/08 01:16:30
The flags are used to change the way we paint in a
| |
| 73 // Used when painting selection as part of a drag-image. This | |
| 74 // flag bypasses a lot of the painting code. TODO: What is the | |
|
leviw_travelin_and_unemployed
2015/07/07 20:33:16
More TODOs without your name.
Why this TODO? You
Julien - ping for review
2015/07/08 01:16:30
Sure but looking for breakage will not yield to be
| |
| 75 // intent of this code? Is it still needed? | |
| 76 GlobalPaintSelectionOnly = 1 << 0, | |
|
leviw_travelin_and_unemployed
2015/07/07 21:39:46
We should probably rename this to GlobalPaintPaint
Julien - ping for review
2015/07/08 01:16:30
It's actually really about painting only selection
| |
| 77 // Used when painting a drag-image or printing in order to | |
| 78 // ignore the hardware layers and paint the whole tree | |
| 79 // into the topmost layer. | |
| 80 GlobalPaintFlattenCompositingLayers = 1 << 1 | |
| 81 }; | |
| 82 | |
| 83 typedef unsigned GlobalPaintFlags; | |
| 84 | |
| 85 extern GlobalPaintFlags gGlobalPaintFlags; | |
| 86 | |
| 69 } // namespace blink | 87 } // namespace blink |
| 70 | 88 |
| 71 #endif // PaintPhase_h | 89 #endif // PaintPhase_h |
| OLD | NEW |