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

Unified Diff: Source/core/rendering/svg/ReferenceFilterBuilder.h

Issue 14793008: Extract the SVG Filter Reference implementation out of the FilterEffectRenderer into its own type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix copyrights Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/svg/ReferenceFilterBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/ReferenceFilterBuilder.h
diff --git a/Source/core/rendering/style/StyleCustomFilterProgram.cpp b/Source/core/rendering/svg/ReferenceFilterBuilder.h
similarity index 73%
copy from Source/core/rendering/style/StyleCustomFilterProgram.cpp
copy to Source/core/rendering/svg/ReferenceFilterBuilder.h
index 31c3d64d662ce7da9ff0582f323a1c6c79d0fe36..9cc113a3fff9ee1fe0326791184c0707c5f62ded 100644
--- a/Source/core/rendering/style/StyleCustomFilterProgram.cpp
+++ b/Source/core/rendering/svg/ReferenceFilterBuilder.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,20 +28,24 @@
* SUCH DAMAGE.
*/
-#include "config.h"
+#ifndef ReferenceFilterBuilder_h
+#define ReferenceFilterBuilder_h
-#include "core/rendering/style/StyleCustomFilterProgram.h"
-
-#include "core/rendering/style/StyleCustomFilterProgramCache.h"
+#include "core/platform/graphics/filters/FilterEffect.h"
+#include "wtf/PassRefPtr.h"
namespace WebCore {
-StyleCustomFilterProgram::~StyleCustomFilterProgram()
-{
- if (m_cache)
- m_cache->remove(this);
-}
+class Filter;
+class FilterEffect;
+class ReferenceFilterOperation;
+class RenderObject;
-} // namespace WebCore
+class ReferenceFilterBuilder {
+public:
+ static PassRefPtr<FilterEffect> build(Filter*, RenderObject* renderer, FilterEffect* previousEffect, const ReferenceFilterOperation*);
+};
+}
+#endif // ReferenceFilterBuilder_h
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/svg/ReferenceFilterBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698