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

Side by Side Diff: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 2075
2076 // Convert from ancestor to local coordinates. 2076 // Convert from ancestor to local coordinates.
2077 IntSize ancestorToLocalOffset = paintInfo.offsetFromLayoutObject - ancestorP aintInfo->offsetFromLayoutObject; 2077 IntSize ancestorToLocalOffset = paintInfo.offsetFromLayoutObject - ancestorP aintInfo->offsetFromLayoutObject;
2078 parentClipRect.move(ancestorToLocalOffset); 2078 parentClipRect.move(ancestorToLocalOffset);
2079 return parentClipRect; 2079 return parentClipRect;
2080 } 2080 }
2081 2081
2082 void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint Info& paintInfo, const PaintLayerFlags& paintLayerFlags, GraphicsContext* contex t, 2082 void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint Info& paintInfo, const PaintLayerFlags& paintLayerFlags, GraphicsContext* contex t,
2083 const IntRect& clip) // In the coords of rootLayer. 2083 const IntRect& clip) // In the coords of rootLayer.
2084 { 2084 {
2085 ASSERT(!RuntimeEnabledFeatures::slimmingPaintCompositorLayerizationEnabled() || clip == LayoutRect::infiniteIntRect());
2086
2085 FontCachePurgePreventer fontCachePurgePreventer; 2087 FontCachePurgePreventer fontCachePurgePreventer;
2086 2088
2087 IntSize offset = paintInfo.offsetFromLayoutObject; 2089 IntSize offset = paintInfo.offsetFromLayoutObject;
2088 AffineTransform translation; 2090 AffineTransform translation;
2089 translation.translate(-offset.width(), -offset.height()); 2091 translation.translate(-offset.width(), -offset.height());
2090 TransformRecorder transformRecorder(*context, *this, translation); 2092 TransformRecorder transformRecorder(*context, *this, translation);
2091 2093
2092 // The dirtyRect is in the coords of the painting root. 2094 // The dirtyRect is in the coords of the painting root.
2093 IntRect dirtyRect(clip); 2095 IntRect dirtyRect(clip);
2094 dirtyRect.move(offset); 2096 dirtyRect.move(offset);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { 2358 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) {
2357 name = "Scrolling Block Selection Layer"; 2359 name = "Scrolling Block Selection Layer";
2358 } else { 2360 } else {
2359 ASSERT_NOT_REACHED(); 2361 ASSERT_NOT_REACHED();
2360 } 2362 }
2361 2363
2362 return name; 2364 return name;
2363 } 2365 }
2364 2366
2365 } // namespace blink 2367 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698