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

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

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/output/filter_operations.h"
11 #include "cc/quads/draw_quad.h"
12 #include "cc/quads/render_pass_id.h"
13 #include "cc/resources/resource_provider.h"
14
15 namespace cc {
16
17 class RenderPassDrawQuad : public DrawQuad {
18 public:
19 RenderPassDrawQuad();
20 ~RenderPassDrawQuad() override;
21
22 void SetNew(const SharedQuadState* shared_quad_state,
23 const gfx::Rect& rect,
24 const gfx::Rect& visible_rect,
25 RenderPassId render_pass_id,
26 ResourceProvider::ResourceId mask_resource_id,
27 const gfx::Vector2dF& mask_uv_scale,
28 const gfx::Size& mask_texture_size,
29 const FilterOperations& filters,
30 const gfx::Vector2dF& filters_scale,
31 const FilterOperations& background_filters);
32
33 void SetAll(const SharedQuadState* shared_quad_state,
34 const gfx::Rect& rect,
35 const gfx::Rect& opaque_rect,
36 const gfx::Rect& visible_rect,
37 bool needs_blending,
38 RenderPassId render_pass_id,
39 ResourceProvider::ResourceId mask_resource_id,
40 const gfx::Vector2dF& mask_uv_scale,
41 const gfx::Size& mask_texture_size,
42 const FilterOperations& filters,
43 const gfx::Vector2dF& filters_scale,
44 const FilterOperations& background_filters);
45
46 RenderPassId render_pass_id;
47 ResourceProvider::ResourceId mask_resource_id;
48 gfx::Vector2dF mask_uv_scale;
49 gfx::Size mask_texture_size;
50
51 // Post-processing filters, applied to the pixels in the render pass' texture.
52 FilterOperations filters;
53
54 // The scale from layer space of the root layer of the render pass to
55 // the render pass physical pixels. This scale is applied to the filter
56 // parameters for pixel-moving filters. This scale should include
57 // content-to-target-space scale, and device pixel ratio.
58 gfx::Vector2dF filters_scale;
59
60 // Post-processing filters, applied to the pixels showing through the
61 // background of the render pass, from behind it.
62 FilterOperations background_filters;
63
64 // Helper function to generate the normalized uv rect.
65 gfx::RectF MaskUVRect() const;
66
67 void IterateResources(const ResourceIteratorCallback& callback) override;
68
69 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
70
71 private:
72 void ExtendValue(base::trace_event::TracedValue* value) const override;
73 };
74
75 } // namespace cc
76
77 #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