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

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

Issue 850763008: Remove assorted dead paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/RenderLayer.h ('k') | sky/engine/core/rendering/RenderView.h » ('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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1942 // We can optimize away code paths in other places if we know that there are no software filters. 1942 // We can optimize away code paths in other places if we know that there are no software filters.
1943 renderer()->document().view()->setHasSoftwareFilters(true); 1943 renderer()->document().view()->setHasSoftwareFilters(true);
1944 } 1944 }
1945 1945
1946 // If the filter fails to build, remove it from the layer. It will still att empt to 1946 // If the filter fails to build, remove it from the layer. It will still att empt to
1947 // go through regular processing (e.g. compositing), but never apply anythin g. 1947 // go through regular processing (e.g. compositing), but never apply anythin g.
1948 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende rer()->style()))) 1948 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende rer()->style())))
1949 filterInfo->setRenderer(nullptr); 1949 filterInfo->setRenderer(nullptr);
1950 } 1950 }
1951 1951
1952 void RenderLayer::filterNeedsPaintInvalidation()
1953 {
1954 }
1955
1956 } // namespace blink 1952 } // namespace blink
1957 1953
1958 #ifndef NDEBUG 1954 #ifndef NDEBUG
1959 void showLayerTree(const blink::RenderLayer* layer) 1955 void showLayerTree(const blink::RenderLayer* layer)
1960 { 1956 {
1961 if (!layer) 1957 if (!layer)
1962 return; 1958 return;
1963 1959
1964 if (blink::LocalFrame* frame = layer->renderer()->frame()) { 1960 if (blink::LocalFrame* frame = layer->renderer()->frame()) {
1965 WTF::String output = externalRepresentation(frame, blink::RenderAsTextSh owAllLayers | blink::RenderAsTextShowLayerNesting | blink::RenderAsTextShowCompo sitedLayers | blink::RenderAsTextShowAddresses | blink::RenderAsTextShowIDAndCla ss | blink::RenderAsTextDontUpdateLayout | blink::RenderAsTextShowLayoutState); 1961 WTF::String output = externalRepresentation(frame, blink::RenderAsTextSh owAllLayers | blink::RenderAsTextShowLayerNesting | blink::RenderAsTextShowCompo sitedLayers | blink::RenderAsTextShowAddresses | blink::RenderAsTextShowIDAndCla ss | blink::RenderAsTextDontUpdateLayout | blink::RenderAsTextShowLayoutState);
1966 fprintf(stderr, "%s\n", output.utf8().data()); 1962 fprintf(stderr, "%s\n", output.utf8().data());
1967 } 1963 }
1968 } 1964 }
1969 1965
1970 void showLayerTree(const blink::RenderObject* renderer) 1966 void showLayerTree(const blink::RenderObject* renderer)
1971 { 1967 {
1972 if (!renderer) 1968 if (!renderer)
1973 return; 1969 return;
1974 showLayerTree(renderer->enclosingLayer()); 1970 showLayerTree(renderer->enclosingLayer());
1975 } 1971 }
1976 #endif 1972 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | sky/engine/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698