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

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

Issue 789643002: Get rid of LayerFragment. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rename methods 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 | « sky/engine/core/rendering/LayerFragment.h ('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 27 matching lines...) Expand all
38 * version of this file under the LGPL, indicate your decision by 38 * version of this file under the LGPL, indicate your decision by
39 * deletingthe provisions above and replace them with the notice and 39 * deletingthe provisions above and replace them with the notice and
40 * other provisions required by the MPL or the GPL, as the case may be. 40 * other provisions required by the MPL or the GPL, as the case may be.
41 * If you do not delete the provisions above, a recipient may use your 41 * If you do not delete the provisions above, a recipient may use your
42 * version of this file under any of the LGPL, the MPL or the GPL. 42 * version of this file under any of the LGPL, the MPL or the GPL.
43 */ 43 */
44 44
45 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 45 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
47 47
48 #include "sky/engine/core/rendering/LayerFragment.h"
49 #include "sky/engine/core/rendering/LayerPaintingInfo.h" 48 #include "sky/engine/core/rendering/LayerPaintingInfo.h"
50 #include "sky/engine/core/rendering/RenderBox.h" 49 #include "sky/engine/core/rendering/RenderBox.h"
51 #include "sky/engine/core/rendering/RenderLayerClipper.h" 50 #include "sky/engine/core/rendering/RenderLayerClipper.h"
52 #include "sky/engine/core/rendering/RenderLayerFilterInfo.h" 51 #include "sky/engine/core/rendering/RenderLayerFilterInfo.h"
53 #include "sky/engine/core/rendering/RenderLayerRepainter.h" 52 #include "sky/engine/core/rendering/RenderLayerRepainter.h"
54 #include "sky/engine/core/rendering/RenderLayerScrollableArea.h" 53 #include "sky/engine/core/rendering/RenderLayerScrollableArea.h"
55 #include "sky/engine/core/rendering/RenderLayerStackingNode.h" 54 #include "sky/engine/core/rendering/RenderLayerStackingNode.h"
56 #include "sky/engine/core/rendering/RenderLayerStackingNodeIterator.h" 55 #include "sky/engine/core/rendering/RenderLayerStackingNodeIterator.h"
57 #include "sky/engine/platform/graphics/CompositingReasons.h" 56 #include "sky/engine/platform/graphics/CompositingReasons.h"
58 #include "sky/engine/public/platform/WebBlendMode.h" 57 #include "sky/engine/public/platform/WebBlendMode.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary. 456 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary.
458 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ; 457 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ;
459 458
460 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary. 459 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary.
461 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags); 460 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags);
462 461
463 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); 462 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint());
464 463
465 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags); 464 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags);
466 465
467 void updatePaintingInfoForFragments(LayerFragments&, const LayerPaintingInfo &, bool shouldPaintContent, const LayoutPoint* offsetFromRoot); 466 void paintBackground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
468 void paintBackgroundForFragments(const LayerFragments&, GraphicsContext*, Gr aphicsContext* transparencyLayerContext, 467 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
469 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); 468 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
470 void paintForegroundForFragments(const LayerFragments&, GraphicsContext*, Gr aphicsContext* transparencyLayerContext, 469 void paintForeground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
471 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); 470 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
472 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&, GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRender er); 471 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
473 void paintOutlineForFragments(const LayerFragments&, GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer); 472 void paintForegroundWithPhase(PaintPhase, GraphicsContext*, const LayerPaint ingInfo&, RenderObject* paintingRootForRenderer,
474 void paintOverflowControlsForFragments(const LayerFragments&, GraphicsContex t*, const LayerPaintingInfo&); 473 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
475 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La yerPaintingInfo&, RenderObject* paintingRootForRenderer); 474 void paintOutline(GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
476 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer Flags); 475 LayoutPoint& layerLocation, ClipRect& layerOutlineRect);
476 void paintOverflowControls(GraphicsContext*, const LayerPaintingInfo&,
477 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
478 void paintMask(GraphicsContext*, const LayerPaintingInfo&, RenderObject* pai ntingRootForRenderer,
479 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
477 480
478 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye r, const HitTestRequest& request, HitTestResult& result, 481 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye r, const HitTestRequest& request, HitTestResult& result,
479 const LayoutRect& hitTestRect, const HitTestLocati on&, bool appliedTransform, 482 const LayoutRect& hitTestRect, const HitTestLocati on&, bool appliedTransform,
480 const HitTestingTransformState* transformState = 0 , double* zOffset = 0); 483 const HitTestingTransformState* transformState = 0 , double* zOffset = 0);
481 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL ayer* containerLayer, const HitTestRequest&, HitTestResult&, 484 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL ayer* containerLayer, const HitTestRequest&, HitTestResult&,
482 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT ransformState* = 0, double* zOffset = 0, 485 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT ransformState* = 0, double* zOffset = 0,
483 const LayoutPoint& translationOffset = LayoutPoint()); 486 const LayoutPoint& translationOffset = LayoutPoint());
484 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons t HitTestRequest&, HitTestResult&, 487 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons t HitTestRequest&, HitTestResult&,
485 const LayoutRect& hitTestRect, const HitTestLocatio n&, 488 const LayoutRect& hitTestRect, const HitTestLocatio n&,
486 const HitTestingTransformState* transformState, dou ble* zOffsetForDescendants, double* zOffset, 489 const HitTestingTransformState* transformState, dou ble* zOffsetForDescendants, double* zOffset,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 593
591 } // namespace blink 594 } // namespace blink
592 595
593 #ifndef NDEBUG 596 #ifndef NDEBUG
594 // Outside the WebCore namespace for ease of invocation from gdb. 597 // Outside the WebCore namespace for ease of invocation from gdb.
595 void showLayerTree(const blink::RenderLayer*); 598 void showLayerTree(const blink::RenderLayer*);
596 void showLayerTree(const blink::RenderObject*); 599 void showLayerTree(const blink::RenderObject*);
597 #endif 600 #endif
598 601
599 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 602 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/LayerFragment.h ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698