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

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

Issue 645853008: Standardize usage of virtual/override/final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted Created 6 years, 2 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/picture_draw_quad.h ('k') | cc/quads/solid_color_draw_quad.h » ('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_id.h" 13 #include "cc/quads/render_pass_id.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 ~RenderPassDrawQuad() override;
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 RenderPassId render_pass_id, 26 RenderPassId render_pass_id,
27 ResourceProvider::ResourceId mask_resource_id, 27 ResourceProvider::ResourceId mask_resource_id,
28 const gfx::Vector2dF& mask_uv_scale, 28 const gfx::Vector2dF& mask_uv_scale,
29 const gfx::Size& mask_texture_size, 29 const gfx::Size& mask_texture_size,
30 const FilterOperations& filters, 30 const FilterOperations& filters,
31 const gfx::Vector2dF& filters_scale, 31 const gfx::Vector2dF& filters_scale,
(...skipping 26 matching lines...) Expand all
58 // content-to-target-space scale, and device pixel ratio. 58 // content-to-target-space scale, and device pixel ratio.
59 gfx::Vector2dF filters_scale; 59 gfx::Vector2dF filters_scale;
60 60
61 // Post-processing filters, applied to the pixels showing through the 61 // Post-processing filters, applied to the pixels showing through the
62 // background of the render pass, from behind it. 62 // background of the render pass, from behind it.
63 FilterOperations background_filters; 63 FilterOperations background_filters;
64 64
65 // Helper function to generate the normalized uv rect. 65 // Helper function to generate the normalized uv rect.
66 gfx::RectF MaskUVRect() const; 66 gfx::RectF MaskUVRect() const;
67 67
68 virtual void IterateResources(const ResourceIteratorCallback& callback) 68 void IterateResources(const ResourceIteratorCallback& callback) override;
69 override;
70 69
71 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*); 70 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
72 71
73 private: 72 private:
74 virtual void ExtendValue(base::debug::TracedValue* value) const override; 73 void ExtendValue(base::debug::TracedValue* value) const override;
75 }; 74 };
76 75
77 } // namespace cc 76 } // namespace cc
78 77
79 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 78 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/picture_draw_quad.h ('k') | cc/quads/solid_color_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698