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

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

Issue 882223005: Remove painting roots. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool hasAncestorWithFilterOutsets() const; 146 bool hasAncestorWithFilterOutsets() const;
147 147
148 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co nst; 148 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co nst;
149 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con st; 149 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con st;
150 150
151 // The two main functions that use the layer system. The paint method 151 // The two main functions that use the layer system. The paint method
152 // paints the layers that intersect the damage rect from back to 152 // paints the layers that intersect the damage rect from back to
153 // front. The hitTest method looks for mouse events by walking 153 // front. The hitTest method looks for mouse events by walking
154 // layers that intersect the point from front to back. 154 // layers that intersect the point from front to back.
155 // paint() assumes that the caller will clip to the bounds of damageRect if necessary. 155 // paint() assumes that the caller will clip to the bounds of damageRect if necessary.
156 void paint(GraphicsContext*, const LayoutRect& damageRect, RenderObject* pai ntingRoot = 0); 156 void paint(GraphicsContext*, const LayoutRect& damageRect);
157 bool hitTest(const HitTestRequest&, HitTestResult&); 157 bool hitTest(const HitTestRequest&, HitTestResult&);
158 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); 158 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&);
159 159
160 // Pass offsetFromRoot if known. 160 // Pass offsetFromRoot if known.
161 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0) const; 161 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0) const;
162 162
163 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know n. 163 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know n.
164 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou tPoint* offsetFromRoot = 0) const; 164 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou tPoint* offsetFromRoot = 0) const;
165 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; 165 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const;
166 166
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ; 280 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ;
281 281
282 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary. 282 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary.
283 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags); 283 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags);
284 284
285 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); 285 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint());
286 286
287 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags); 287 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags);
288 288
289 void paintForeground(GraphicsContext*, GraphicsContext* transparencyLayerCon text, 289 void paintForeground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
290 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer, 290 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&,
291 LayoutPoint& layerLocation, ClipRect& layerForegroundRect); 291 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
292 void paintForegroundWithPhase(PaintPhase, GraphicsContext*, const LayerPaint ingInfo&, RenderObject* paintingRootForRenderer, 292 void paintForegroundWithPhase(PaintPhase, GraphicsContext*, const LayerPaint ingInfo&,
293 LayoutPoint& layerLocation, ClipRect& layerForegroundRect); 293 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
294 void paintMask(GraphicsContext*, const LayerPaintingInfo&, RenderObject* pai ntingRootForRenderer, 294 void paintMask(GraphicsContext*, const LayerPaintingInfo&,
295 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect); 295 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
296 296
297 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye r, const HitTestRequest& request, HitTestResult& result, 297 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye r, const HitTestRequest& request, HitTestResult& result,
298 const LayoutRect& hitTestRect, const HitTestLocati on&, bool appliedTransform, 298 const LayoutRect& hitTestRect, const HitTestLocati on&, bool appliedTransform,
299 const HitTestingTransformState* transformState = 0 , double* zOffset = 0); 299 const HitTestingTransformState* transformState = 0 , double* zOffset = 0);
300 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL ayer* containerLayer, const HitTestRequest&, HitTestResult&, 300 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL ayer* containerLayer, const HitTestRequest&, HitTestResult&,
301 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT ransformState* = 0, double* zOffset = 0, 301 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT ransformState* = 0, double* zOffset = 0,
302 const LayoutPoint& translationOffset = LayoutPoint()); 302 const LayoutPoint& translationOffset = LayoutPoint());
303 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons t HitTestRequest&, HitTestResult&, 303 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons t HitTestRequest&, HitTestResult&,
304 const LayoutRect& hitTestRect, const HitTestLocatio n&, 304 const LayoutRect& hitTestRect, const HitTestLocatio n&,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 } // namespace blink 376 } // namespace blink
377 377
378 #ifndef NDEBUG 378 #ifndef NDEBUG
379 // Outside the WebCore namespace for ease of invocation from gdb. 379 // Outside the WebCore namespace for ease of invocation from gdb.
380 void showLayerTree(const blink::RenderLayer*); 380 void showLayerTree(const blink::RenderLayer*);
381 void showLayerTree(const blink::RenderObject*); 381 void showLayerTree(const blink::RenderObject*);
382 #endif 382 #endif
383 383
384 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 384 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698