#ifndef CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
#define CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
#include "base/basictypes.h"
#include "cc/base/cc_export.h"
#include "skia/ext/refptr.h"
class GrContext;
class SkBitmap;
class SkImageFilter;
namespace gfx {
class SizeF;
}
namespace cc {
class FilterOperations;
class CC_EXPORT 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);
};
}  
#endif