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

Side by Side Diff: Source/core/rendering/RenderLayer.cpp

Issue 205033010: Remove --enable-accelerated-filters flag, Blink-side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take AcceleratedImageBufferSurface behind the woodshed. Created 6 years, 9 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) 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 3966 matching lines...) Expand 10 before | Expand all | Expand 10 after
3977 // for loading CSS shader files. 3977 // for loading CSS shader files.
3978 if (RenderLayerFilterInfo* filterInfo = this->filterInfo()) 3978 if (RenderLayerFilterInfo* filterInfo = this->filterInfo())
3979 filterInfo->setRenderer(nullptr); 3979 filterInfo->setRenderer(nullptr);
3980 3980
3981 return; 3981 return;
3982 } 3982 }
3983 3983
3984 RenderLayerFilterInfo* filterInfo = ensureFilterInfo(); 3984 RenderLayerFilterInfo* filterInfo = ensureFilterInfo();
3985 if (!filterInfo->renderer()) { 3985 if (!filterInfo->renderer()) {
3986 RefPtr<FilterEffectRenderer> filterRenderer = FilterEffectRenderer::crea te(); 3986 RefPtr<FilterEffectRenderer> filterRenderer = FilterEffectRenderer::crea te();
3987 filterRenderer->setIsAccelerated(renderer()->frame()->settings()->accele ratedFiltersEnabled());
3988 filterInfo->setRenderer(filterRenderer.release()); 3987 filterInfo->setRenderer(filterRenderer.release());
3989 3988
3990 // We can optimize away code paths in other places if we know that there are no software filters. 3989 // We can optimize away code paths in other places if we know that there are no software filters.
3991 renderer()->document().view()->setHasSoftwareFilters(true); 3990 renderer()->document().view()->setHasSoftwareFilters(true);
3992 } 3991 }
3993 3992
3994 // If the filter fails to build, remove it from the layer. It will still att empt to 3993 // If the filter fails to build, remove it from the layer. It will still att empt to
3995 // go through regular processing (e.g. compositing), but never apply anythin g. 3994 // go through regular processing (e.g. compositing), but never apply anythin g.
3996 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende rer()->style()))) 3995 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende rer()->style())))
3997 filterInfo->setRenderer(nullptr); 3996 filterInfo->setRenderer(nullptr);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
4073 } 4072 }
4074 } 4073 }
4075 4074
4076 void showLayerTree(const WebCore::RenderObject* renderer) 4075 void showLayerTree(const WebCore::RenderObject* renderer)
4077 { 4076 {
4078 if (!renderer) 4077 if (!renderer)
4079 return; 4078 return;
4080 showLayerTree(renderer->enclosingLayer()); 4079 showLayerTree(renderer->enclosingLayer());
4081 } 4080 }
4082 #endif 4081 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698