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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 698743002: [WIP] Adding support for <iframe>s to slimming paint. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2151 // FIXME: GraphicsLayers need a way to split for RenderRegions. 2151 // FIXME: GraphicsLayers need a way to split for RenderRegions.
2152 LayerPaintingInfo paintingInfo(paintInfo.renderLayer, dirtyRect, PaintBe haviorNormal, paintInfo.renderLayer->subpixelAccumulation()); 2152 LayerPaintingInfo paintingInfo(paintInfo.renderLayer, dirtyRect, PaintBe haviorNormal, paintInfo.renderLayer->subpixelAccumulation());
2153 LayerPainter(*paintInfo.renderLayer).paintLayerContents(context, paintin gInfo, paintLayerFlags); 2153 LayerPainter(*paintInfo.renderLayer).paintLayerContents(context, paintin gInfo, paintLayerFlags);
2154 2154
2155 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { 2155 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
2156 2156
2157 #ifndef NDEBUG 2157 #ifndef NDEBUG
2158 context->fillRect(dirtyRect, Color(0xFF, 0, 0)); 2158 context->fillRect(dirtyRect, Color(0xFF, 0, 0));
2159 #endif 2159 #endif
2160 2160
2161 if (RenderView* view = paintInfo.renderLayer->renderer()->view()) { 2161 if (paintInfo.renderLayer->renderer()->view()) {
2162 const PaintList& paintList = view->viewDisplayList().paintList() ; 2162 const PaintList& paintList = ViewDisplayList::fromRenderLayer(pa intInfo.renderLayer).paintList();
2163 for (PaintList::const_iterator it = paintList.begin(); it != pai ntList.end(); ++it) 2163 for (PaintList::const_iterator it = paintList.begin(); it != pai ntList.end(); ++it)
2164 (*it)->replay(context); 2164 (*it)->replay(context);
2165 } 2165 }
2166 } 2166 }
2167 2167
2168 if (paintInfo.renderLayer->containsDirtyOverlayScrollbars()) 2168 if (paintInfo.renderLayer->containsDirtyOverlayScrollbars())
2169 LayerPainter(*paintInfo.renderLayer).paintLayerContents(context, pai ntingInfo, paintLayerFlags | PaintLayerPaintingOverlayScrollbars); 2169 LayerPainter(*paintInfo.renderLayer).paintLayerContents(context, pai ntingInfo, paintLayerFlags | PaintLayerPaintingOverlayScrollbars);
2170 } else { 2170 } else {
2171 ASSERT(compositor()->layerSquashingEnabled()); 2171 ASSERT(compositor()->layerSquashingEnabled());
2172 LayerPaintingInfo paintingInfo(paintInfo.renderLayer, dirtyRect, PaintBe haviorNormal, paintInfo.renderLayer->subpixelAccumulation()); 2172 LayerPaintingInfo paintingInfo(paintInfo.renderLayer, dirtyRect, PaintBe haviorNormal, paintInfo.renderLayer->subpixelAccumulation());
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { 2393 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) {
2394 name = "Scrolling Block Selection Layer"; 2394 name = "Scrolling Block Selection Layer";
2395 } else { 2395 } else {
2396 ASSERT_NOT_REACHED(); 2396 ASSERT_NOT_REACHED();
2397 } 2397 }
2398 2398
2399 return name; 2399 return name;
2400 } 2400 }
2401 2401
2402 } // namespace blink 2402 } // namespace blink
OLDNEW
« Source/core/paint/TranslationRecorder.cpp ('K') | « Source/core/rendering/RenderView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698