Home | History | Annotate | Download | only in output
      1 // Copyright 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 
      6 #ifndef CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
      7 #define CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
      8 
      9 #include "base/basictypes.h"
     10 #include "cc/base/cc_export.h"
     11 
     12 class GrContext;
     13 class SkBitmap;
     14 
     15 namespace gfx {
     16 class SizeF;
     17 }
     18 
     19 namespace cc {
     20 
     21 class FilterOperations;
     22 
     23 class CC_EXPORT RenderSurfaceFilters {
     24  public:
     25   static SkBitmap Apply(const FilterOperations& filters,
     26                         unsigned texture_id,
     27                         gfx::SizeF size,
     28                         GrContext* gr_context);
     29   static FilterOperations Optimize(const FilterOperations& filters);
     30 
     31  private:
     32   DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters);
     33 };
     34 
     35 }  // namespace cc
     36 
     37 #endif  // CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
     38