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

Side by Side Diff: cc/quads/filter_draw_quad.h

Issue 462983003: [WIP] Implement BackGroundFilter as seperate layer in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « cc/quads/draw_quad.h ('k') | cc/quads/filter_draw_quad.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « cc/quads/draw_quad.h ('k') | cc/quads/filter_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698