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

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

Issue 867463005: Merge the background paint phase into the foreground phase. (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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary. 403 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary.
404 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ; 404 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ;
405 405
406 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary. 406 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary.
407 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags); 407 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags);
408 408
409 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); 409 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint());
410 410
411 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags); 411 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags);
412 412
413 void paintBackground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
414 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
415 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
416 void paintForeground(GraphicsContext*, GraphicsContext* transparencyLayerCon text, 413 void paintForeground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
417 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer, 414 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
418 LayoutPoint& layerLocation, ClipRect& layerForegroundRect); 415 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
419 void paintForegroundWithPhase(PaintPhase, GraphicsContext*, const LayerPaint ingInfo&, RenderObject* paintingRootForRenderer, 416 void paintForegroundWithPhase(PaintPhase, GraphicsContext*, const LayerPaint ingInfo&, RenderObject* paintingRootForRenderer,
420 LayoutPoint& layerLocation, ClipRect& layerForegroundRect); 417 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
421 void paintOutline(GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, 418 void paintOutline(GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
422 LayoutPoint& layerLocation, ClipRect& layerOutlineRect); 419 LayoutPoint& layerLocation, ClipRect& layerOutlineRect);
423 void paintOverflowControls(GraphicsContext*, const LayerPaintingInfo&, 420 void paintOverflowControls(GraphicsContext*, const LayerPaintingInfo&,
424 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect); 421 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
425 void paintMask(GraphicsContext*, const LayerPaintingInfo&, RenderObject* pai ntingRootForRenderer, 422 void paintMask(GraphicsContext*, const LayerPaintingInfo&, RenderObject* pai ntingRootForRenderer,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 525
529 } // namespace blink 526 } // namespace blink
530 527
531 #ifndef NDEBUG 528 #ifndef NDEBUG
532 // Outside the WebCore namespace for ease of invocation from gdb. 529 // Outside the WebCore namespace for ease of invocation from gdb.
533 void showLayerTree(const blink::RenderLayer*); 530 void showLayerTree(const blink::RenderLayer*);
534 void showLayerTree(const blink::RenderObject*); 531 void showLayerTree(const blink::RenderObject*);
535 #endif 532 #endif
536 533
537 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 534 #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