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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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/render_pass.cc ('k') | cc/quads/render_pass_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
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 static scoped_ptr<RenderPassDrawQuad> Create(); 20 static scoped_ptr<RenderPassDrawQuad> Create();
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 gfx::Rect rect, 24 const gfx::Rect& rect,
25 RenderPass::Id render_pass_id, 25 RenderPass::Id render_pass_id,
26 bool is_replica, 26 bool is_replica,
27 ResourceProvider::ResourceId mask_resource_id, 27 ResourceProvider::ResourceId mask_resource_id,
28 gfx::Rect contents_changed_since_last_frame, 28 const gfx::Rect& contents_changed_since_last_frame,
29 gfx::RectF mask_uv_rect, 29 const gfx::RectF& mask_uv_rect,
30 const FilterOperations& filters, 30 const FilterOperations& filters,
31 const FilterOperations& background_filters); 31 const FilterOperations& background_filters);
32 32
33 void SetAll(const SharedQuadState* shared_quad_state, 33 void SetAll(const SharedQuadState* shared_quad_state,
34 gfx::Rect rect, 34 const gfx::Rect& rect,
35 gfx::Rect opaque_rect, 35 const gfx::Rect& opaque_rect,
36 gfx::Rect visible_rect, 36 const gfx::Rect& visible_rect,
37 bool needs_blending, 37 bool needs_blending,
38 RenderPass::Id render_pass_id, 38 RenderPass::Id render_pass_id,
39 bool is_replica, 39 bool is_replica,
40 ResourceProvider::ResourceId mask_resource_id, 40 ResourceProvider::ResourceId mask_resource_id,
41 gfx::Rect contents_changed_since_last_frame, 41 const gfx::Rect& contents_changed_since_last_frame,
42 gfx::RectF mask_uv_rect, 42 const gfx::RectF& mask_uv_rect,
43 const FilterOperations& filters, 43 const FilterOperations& filters,
44 const FilterOperations& background_filters); 44 const FilterOperations& background_filters);
45 45
46 scoped_ptr<RenderPassDrawQuad> Copy( 46 scoped_ptr<RenderPassDrawQuad> Copy(
47 const SharedQuadState* copied_shared_quad_state, 47 const SharedQuadState* copied_shared_quad_state,
48 RenderPass::Id copied_render_pass_id) const; 48 RenderPass::Id copied_render_pass_id) const;
49 49
50 RenderPass::Id render_pass_id; 50 RenderPass::Id render_pass_id;
51 bool is_replica; 51 bool is_replica;
52 ResourceProvider::ResourceId mask_resource_id; 52 ResourceProvider::ResourceId mask_resource_id;
(...skipping 13 matching lines...) Expand all
66 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*); 66 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
67 67
68 private: 68 private:
69 RenderPassDrawQuad(); 69 RenderPassDrawQuad();
70 virtual void ExtendValue(base::DictionaryValue* value) const OVERRIDE; 70 virtual void ExtendValue(base::DictionaryValue* value) const OVERRIDE;
71 }; 71 };
72 72
73 } // namespace cc 73 } // namespace cc
74 74
75 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 75 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/render_pass.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698