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

Side by Side Diff: Source/core/rendering/RenderTableRow.h

Issue 183103007: Implement will-change-based GPU rasterization hint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move hint from WebLayer to WebContentLayer Created 6 years, 9 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 virtual void willBeRemovedFromTree() OVERRIDE; 99 virtual void willBeRemovedFromTree() OVERRIDE;
100 100
101 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE; 101 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE;
102 virtual void layout() OVERRIDE; 102 virtual void layout() OVERRIDE;
103 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 103 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
104 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 104 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
105 105
106 virtual LayerType layerTypeRequired() const OVERRIDE 106 virtual LayerType layerTypeRequired() const OVERRIDE
107 { 107 {
108 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up() || isStickyPositioned() || style()->hasWillChangeCompositingHint()) 108 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up() || isStickyPositioned() || style()->hasWillChangeCompositingHint() || style ()->hasWillChangeGpuRasterizationHint())
109 return NormalLayer; 109 return NormalLayer;
110 110
111 if (hasOverflowClip()) 111 if (hasOverflowClip())
112 return OverflowClipLayer; 112 return OverflowClipLayer;
113 113
114 return NoLayer; 114 return NoLayer;
115 } 115 }
116 116
117 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 117 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
118 118
119 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 119 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
120 120
121 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 121 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
122 122
123 RenderObjectChildList m_children; 123 RenderObjectChildList m_children;
124 unsigned m_rowIndex : 31; 124 unsigned m_rowIndex : 31;
125 }; 125 };
126 126
127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow()); 127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow());
128 128
129 } // namespace WebCore 129 } // namespace WebCore
130 130
131 #endif // RenderTableRow_h 131 #endif // RenderTableRow_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.h ('k') | Source/core/rendering/compositing/CompositedLayerMapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698