OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 #ifndef CC_QUADS_FILTER_DRAW_QUAD_H_ |
| 6 #define CC_QUADS_FILTER_DRAW_QUAD_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/quads/draw_quad.h" |
| 11 #include "cc/output/filter_operations.h" |
| 12 |
| 13 namespace cc { |
| 14 |
| 15 class CC_EXPORT FilterDrawQuad : public DrawQuad { |
| 16 public: |
| 17 FilterDrawQuad(); |
| 18 |
| 19 void SetNew(const SharedQuadState* shared_quad_state, |
| 20 const gfx::Rect& visible_rect, |
| 21 const gfx::Rect& src_rect, |
| 22 const gfx::Rect& dst_draw_rect, |
| 23 const FilterOperations& background_filters); |
| 24 |
| 25 void SetAll(const SharedQuadState* shared_quad_state, |
| 26 const gfx::Rect& rect, |
| 27 const gfx::Rect& opaque_rect, |
| 28 const gfx::Rect& visible_rect, |
| 29 bool needs_blending, |
| 30 const gfx::Rect& src_rect, |
| 31 const gfx::Rect& dst_draw_rect, |
| 32 const FilterOperations& background_filters); |
| 33 |
| 34 virtual void IterateResources( |
| 35 const ResourceIteratorCallback& callback) OVERRIDE; |
| 36 |
| 37 static const FilterDrawQuad* MaterialCast(const DrawQuad*); |
| 38 |
| 39 gfx::Rect src_filter_rect_; |
| 40 gfx::Rect draw_filter_rect_; |
| 41 FilterOperations filter_operations_; |
| 42 |
| 43 private: |
| 44 virtual void ExtendValue(base::debug::TracedValue* value) const OVERRIDE; |
| 45 }; |
| 46 |
| 47 } // namespace cc |
| 48 |
| 49 #endif // CC_QUADS_FILTER_DRAW_QUAD_H_ |
OLD | NEW |