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

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

Issue 448133002: Remove unused RenderPassDrawQuad fields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rpdqdamage: addmissingfile 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/filter_operations.h" 11 #include "cc/output/filter_operations.h"
12 #include "cc/quads/draw_quad.h" 12 #include "cc/quads/draw_quad.h"
13 #include "cc/quads/render_pass.h" 13 #include "cc/quads/render_pass.h"
14 #include "cc/resources/resource_provider.h" 14 #include "cc/resources/resource_provider.h"
15 15
16 namespace cc { 16 namespace cc {
17 17
18 class CC_EXPORT RenderPassDrawQuad : public DrawQuad { 18 class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
19 public: 19 public:
20 RenderPassDrawQuad(); 20 RenderPassDrawQuad();
21 virtual ~RenderPassDrawQuad(); 21 virtual ~RenderPassDrawQuad();
22 22
23 void SetNew(const SharedQuadState* shared_quad_state, 23 void SetNew(const SharedQuadState* shared_quad_state,
24 const gfx::Rect& rect, 24 const gfx::Rect& rect,
25 const gfx::Rect& visible_rect, 25 const gfx::Rect& visible_rect,
26 RenderPass::Id render_pass_id, 26 RenderPass::Id render_pass_id,
27 bool is_replica,
28 ResourceProvider::ResourceId mask_resource_id, 27 ResourceProvider::ResourceId mask_resource_id,
29 const gfx::Rect& contents_changed_since_last_frame,
30 const gfx::RectF& mask_uv_rect, 28 const gfx::RectF& mask_uv_rect,
31 const FilterOperations& filters, 29 const FilterOperations& filters,
32 const FilterOperations& background_filters); 30 const FilterOperations& background_filters);
33 31
34 void SetAll(const SharedQuadState* shared_quad_state, 32 void SetAll(const SharedQuadState* shared_quad_state,
35 const gfx::Rect& rect, 33 const gfx::Rect& rect,
36 const gfx::Rect& opaque_rect, 34 const gfx::Rect& opaque_rect,
37 const gfx::Rect& visible_rect, 35 const gfx::Rect& visible_rect,
38 bool needs_blending, 36 bool needs_blending,
39 RenderPass::Id render_pass_id, 37 RenderPass::Id render_pass_id,
40 bool is_replica,
41 ResourceProvider::ResourceId mask_resource_id, 38 ResourceProvider::ResourceId mask_resource_id,
42 const gfx::Rect& contents_changed_since_last_frame,
43 const gfx::RectF& mask_uv_rect, 39 const gfx::RectF& mask_uv_rect,
44 const FilterOperations& filters, 40 const FilterOperations& filters,
45 const FilterOperations& background_filters); 41 const FilterOperations& background_filters);
46 42
47 RenderPass::Id render_pass_id; 43 RenderPass::Id render_pass_id;
48 bool is_replica;
49 ResourceProvider::ResourceId mask_resource_id; 44 ResourceProvider::ResourceId mask_resource_id;
50 gfx::Rect contents_changed_since_last_frame;
51 gfx::RectF mask_uv_rect; 45 gfx::RectF mask_uv_rect;
52 46
53 // Post-processing filters, applied to the pixels in the render pass' texture. 47 // Post-processing filters, applied to the pixels in the render pass' texture.
54 FilterOperations filters; 48 FilterOperations filters;
55 49
56 // Post-processing filters, applied to the pixels showing through the 50 // Post-processing filters, applied to the pixels showing through the
57 // background of the render pass, from behind it. 51 // background of the render pass, from behind it.
58 FilterOperations background_filters; 52 FilterOperations background_filters;
59 53
60 virtual void IterateResources(const ResourceIteratorCallback& callback) 54 virtual void IterateResources(const ResourceIteratorCallback& callback)
61 OVERRIDE; 55 OVERRIDE;
62 56
63 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*); 57 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
64 58
65 private: 59 private:
66 virtual void ExtendValue(base::debug::TracedValue* value) const OVERRIDE; 60 virtual void ExtendValue(base::debug::TracedValue* value) const OVERRIDE;
67 }; 61 };
68 62
69 } // namespace cc 63 } // namespace cc
70 64
71 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 65 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698