Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: sky/engine/core/rendering/LayerPaintingInfo.h

Issue 766303002: Remove some dead paint flags. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/rendering/PaintInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 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 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 PaintLayerHaveTransparency = 1, 56 PaintLayerHaveTransparency = 1,
57 PaintLayerAppliedTransform = 1 << 1, 57 PaintLayerAppliedTransform = 1 << 1,
58 // FIXME(sky): This is unused. Remove it. 58 // FIXME(sky): This is unused. Remove it.
59 PaintLayerUncachedClipRects = 1 << 2, 59 PaintLayerUncachedClipRects = 1 << 2,
60 PaintLayerPaintingOverlayScrollbars = 1 << 4, 60 PaintLayerPaintingOverlayScrollbars = 1 << 4,
61 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, 61 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5,
62 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, 62 PaintLayerPaintingCompositingForegroundPhase = 1 << 6,
63 PaintLayerPaintingCompositingMaskPhase = 1 << 7, 63 PaintLayerPaintingCompositingMaskPhase = 1 << 7,
64 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, 64 PaintLayerPaintingCompositingScrollingPhase = 1 << 8,
65 PaintLayerPaintingOverflowContents = 1 << 9, 65 PaintLayerPaintingOverflowContents = 1 << 9,
66 PaintLayerPaintingRootBackgroundOnly = 1 << 10, 66 PaintLayerPaintingChildClippingMaskPhase = 1 << 10,
67 PaintLayerPaintingSkipRootBackground = 1 << 11,
68 PaintLayerPaintingChildClippingMaskPhase = 1 << 12,
69 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo mpositingMaskPhase) 67 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo mpositingMaskPhase)
70 }; 68 };
71 69
72 typedef unsigned PaintLayerFlags; 70 typedef unsigned PaintLayerFlags;
73 71
74 struct LayerPaintingInfo { 72 struct LayerPaintingInfo {
75 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, 73 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect,
76 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, 74 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation,
77 RenderObject* inPaintingRoot = 0) 75 RenderObject* inPaintingRoot = 0)
78 : rootLayer(inRootLayer) 76 : rootLayer(inRootLayer)
79 , paintingRoot(inPaintingRoot) 77 , paintingRoot(inPaintingRoot)
80 , paintDirtyRect(inDirtyRect) 78 , paintDirtyRect(inDirtyRect)
81 , subPixelAccumulation(inSubPixelAccumulation) 79 , subPixelAccumulation(inSubPixelAccumulation)
82 , paintBehavior(inPaintBehavior) 80 , paintBehavior(inPaintBehavior)
83 , clipToDirtyRect(true) 81 , clipToDirtyRect(true)
84 { } 82 { }
85 RenderLayer* rootLayer; 83 RenderLayer* rootLayer;
86 RenderObject* paintingRoot; // only paint descendants of this object 84 RenderObject* paintingRoot; // only paint descendants of this object
87 LayoutRect paintDirtyRect; // relative to rootLayer; 85 LayoutRect paintDirtyRect; // relative to rootLayer;
88 LayoutSize subPixelAccumulation; 86 LayoutSize subPixelAccumulation;
89 PaintBehavior paintBehavior; 87 PaintBehavior paintBehavior;
90 bool clipToDirtyRect; 88 bool clipToDirtyRect;
91 }; 89 };
92 90
93 } // namespace blink 91 } // namespace blink
94 92
95 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ 93 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698