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

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 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 2084
2085 // Convert from ancestor to local coordinates. 2085 // Convert from ancestor to local coordinates.
2086 IntSize ancestorToLocalOffset = paintInfo.offsetFromLayoutObject - ancestorP aintInfo->offsetFromLayoutObject; 2086 IntSize ancestorToLocalOffset = paintInfo.offsetFromLayoutObject - ancestorP aintInfo->offsetFromLayoutObject;
2087 parentClipRect.move(ancestorToLocalOffset); 2087 parentClipRect.move(ancestorToLocalOffset);
2088 return parentClipRect; 2088 return parentClipRect;
2089 } 2089 }
2090 2090
2091 void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint Info& paintInfo, const PaintLayerFlags& paintLayerFlags, GraphicsContext* contex t, 2091 void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint Info& paintInfo, const PaintLayerFlags& paintLayerFlags, GraphicsContext* contex t,
2092 const IntRect& clip) // In the coords of rootLayer. 2092 const IntRect& clip) // In the coords of rootLayer.
2093 { 2093 {
2094 ASSERT(!RuntimeEnabledFeatures::slimmingPaintCompositorLayerizationEnabled() || clip == LayoutRect::infiniteIntRect());
2095
2094 FontCachePurgePreventer fontCachePurgePreventer; 2096 FontCachePurgePreventer fontCachePurgePreventer;
2095 2097
2096 IntSize offset = paintInfo.offsetFromLayoutObject; 2098 IntSize offset = paintInfo.offsetFromLayoutObject;
2097 AffineTransform translation; 2099 AffineTransform translation;
2098 translation.translate(-offset.width(), -offset.height()); 2100 translation.translate(-offset.width(), -offset.height());
2099 TransformRecorder transformRecorder(*context, *this, translation); 2101 TransformRecorder transformRecorder(*context, *this, translation);
2100 2102
2101 // The dirtyRect is in the coords of the painting root. 2103 // The dirtyRect is in the coords of the painting root.
2102 IntRect dirtyRect(clip); 2104 IntRect dirtyRect(clip);
2103 dirtyRect.move(offset); 2105 dirtyRect.move(offset);
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { 2388 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) {
2387 name = "Scrolling Block Selection Layer"; 2389 name = "Scrolling Block Selection Layer";
2388 } else { 2390 } else {
2389 ASSERT_NOT_REACHED(); 2391 ASSERT_NOT_REACHED();
2390 } 2392 }
2391 2393
2392 return name; 2394 return name;
2393 } 2395 }
2394 2396
2395 } // namespace blink 2397 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698