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

Unified Diff: cc/output/render_surface_filters.h

Issue 1531403002: Revert "Delete CC." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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 | « cc/output/program_binding.cc ('k') | cc/output/render_surface_filters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/render_surface_filters.h
diff --git a/cc/output/render_surface_filters.h b/cc/output/render_surface_filters.h
new file mode 100644
index 0000000000000000000000000000000000000000..22c9363b5183728ab4c31c6d3d4d52aed941ca00
--- /dev/null
+++ b/cc/output/render_surface_filters.h
@@ -0,0 +1,42 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+
+#ifndef CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
+#define CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
+
+#include "base/basictypes.h"
+#include "skia/ext/refptr.h"
+
+class GrContext;
+class SkBitmap;
+class SkImageFilter;
+
+namespace gfx {
+class SizeF;
+}
+
+namespace cc {
+
+class FilterOperations;
+
+class RenderSurfaceFilters {
+ public:
+ static SkBitmap Apply(const FilterOperations& filters,
+ unsigned texture_id,
+ const gfx::SizeF& size,
+ GrContext* gr_context);
+ static FilterOperations Optimize(const FilterOperations& filters);
+
+ static skia::RefPtr<SkImageFilter> BuildImageFilter(
+ const FilterOperations& filters,
+ const gfx::SizeF& size);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters);
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
« no previous file with comments | « cc/output/program_binding.cc ('k') | cc/output/render_surface_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698