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

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

Issue 337793004: Repaint squashing content in cases where the entire frame is repainting. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged. Created 6 years, 6 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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 #endif 1862 #endif
1863 1863
1864 struct SetContentsNeedsDisplayFunctor { 1864 struct SetContentsNeedsDisplayFunctor {
1865 void operator() (GraphicsLayer* layer) const 1865 void operator() (GraphicsLayer* layer) const
1866 { 1866 {
1867 if (layer->drawsContent()) 1867 if (layer->drawsContent())
1868 layer->setNeedsDisplay(); 1868 layer->setNeedsDisplay();
1869 } 1869 }
1870 }; 1870 };
1871 1871
1872 void CompositedLayerMapping::setSquashingContentsNeedDisplay()
1873 {
1874 ApplyToGraphicsLayers(this, SetContentsNeedsDisplayFunctor(), ApplyToSquashi ngLayer);
1875 }
1876
1872 void CompositedLayerMapping::setContentsNeedDisplay() 1877 void CompositedLayerMapping::setContentsNeedDisplay()
1873 { 1878 {
1874 // FIXME: need to split out repaints for the background. 1879 // FIXME: need to split out repaints for the background.
1875 ASSERT(!paintsIntoCompositedAncestor()); 1880 ASSERT(!paintsIntoCompositedAncestor());
1876 ApplyToGraphicsLayers(this, SetContentsNeedsDisplayFunctor(), ApplyToContent Layers); 1881 ApplyToGraphicsLayers(this, SetContentsNeedsDisplayFunctor(), ApplyToContent Layers);
1877 } 1882 }
1878 1883
1879 struct SetContentsNeedsDisplayInRectFunctor { 1884 struct SetContentsNeedsDisplayInRectFunctor {
1880 void operator() (GraphicsLayer* layer) const 1885 void operator() (GraphicsLayer* layer) const
1881 { 1886 {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2222 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2218 name = "Scrolling Contents Layer"; 2223 name = "Scrolling Contents Layer";
2219 } else { 2224 } else {
2220 ASSERT_NOT_REACHED(); 2225 ASSERT_NOT_REACHED();
2221 } 2226 }
2222 2227
2223 return name; 2228 return name;
2224 } 2229 }
2225 2230
2226 } // namespace WebCore 2231 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698