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

Unified Diff: sky/engine/core/rendering/RenderLayerFilterInfo.cpp

Issue 962543003: Simplify RenderLayer's handling of filters. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderLayerFilterInfo.h ('k') | sky/engine/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderLayerFilterInfo.cpp
diff --git a/sky/engine/core/rendering/RenderLayerFilterInfo.cpp b/sky/engine/core/rendering/RenderLayerFilterInfo.cpp
deleted file mode 100644
index 08d7a7a2e3c4d12cfda6947b6abb2737ac8c7b1c..0000000000000000000000000000000000000000
--- a/sky/engine/core/rendering/RenderLayerFilterInfo.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above
- * copyright notice, this list of conditions and the following
- * disclaimer.
- * 2. Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
- * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include "sky/engine/config.h"
-
-#include "sky/engine/core/rendering/RenderLayerFilterInfo.h"
-
-#include "sky/engine/core/rendering/FilterEffectRenderer.h"
-#include "sky/engine/core/rendering/RenderLayer.h"
-
-namespace blink {
-
-RenderLayerFilterInfoMap* RenderLayerFilterInfo::s_filterMap = 0;
-
-RenderLayerFilterInfo* RenderLayerFilterInfo::filterInfoForRenderLayer(const RenderLayer* layer)
-{
- if (!s_filterMap)
- return 0;
- RenderLayerFilterInfoMap::iterator iter = s_filterMap->find(layer);
- return (iter != s_filterMap->end()) ? iter->value : 0;
-}
-
-RenderLayerFilterInfo* RenderLayerFilterInfo::createFilterInfoForRenderLayerIfNeeded(RenderLayer* layer)
-{
- if (!s_filterMap)
- s_filterMap = new RenderLayerFilterInfoMap();
-
- RenderLayerFilterInfoMap::iterator iter = s_filterMap->find(layer);
- if (iter != s_filterMap->end()) {
- ASSERT(layer->hasFilterInfo());
- return iter->value;
- }
-
- RenderLayerFilterInfo* filter = new RenderLayerFilterInfo(layer);
- s_filterMap->set(layer, filter);
- layer->setHasFilterInfo(true);
- return filter;
-}
-
-void RenderLayerFilterInfo::removeFilterInfoForRenderLayer(RenderLayer* layer)
-{
- if (!s_filterMap)
- return;
- RenderLayerFilterInfo* filter = s_filterMap->take(layer);
- if (s_filterMap->isEmpty()) {
- delete s_filterMap;
- s_filterMap = 0;
- }
- if (!filter) {
- ASSERT(!layer->hasFilterInfo());
- return;
- }
- layer->setHasFilterInfo(false);
- delete filter;
-}
-
-RenderLayerFilterInfo::RenderLayerFilterInfo(RenderLayer* layer)
-{
-}
-
-RenderLayerFilterInfo::~RenderLayerFilterInfo()
-{
-}
-
-void RenderLayerFilterInfo::setRenderer(PassRefPtr<FilterEffectRenderer> renderer)
-{
- m_renderer = renderer;
-}
-
-void RenderLayerFilterInfo::updateReferenceFilterClients(const FilterOperations& operations)
-{
-}
-
-void RenderLayerFilterInfo::removeReferenceFilterClients()
-{
-}
-
-} // namespace blink
-
« no previous file with comments | « sky/engine/core/rendering/RenderLayerFilterInfo.h ('k') | sky/engine/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698