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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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/list_container.h ('k') | cc/quads/picture_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 2013 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_PICTURE_DRAW_QUAD_H_
6 #define CC_QUADS_PICTURE_DRAW_QUAD_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h"
11 #include "cc/quads/content_draw_quad_base.h"
12 #include "cc/resources/raster_source.h"
13 #include "ui/gfx/geometry/rect.h"
14 #include "ui/gfx/geometry/rect_f.h"
15 #include "ui/gfx/geometry/size.h"
16
17 namespace cc {
18
19 // Used for on-demand tile rasterization.
20 class CC_EXPORT PictureDrawQuad : public ContentDrawQuadBase {
21 public:
22 PictureDrawQuad();
23 ~PictureDrawQuad() override;
24
25 void SetNew(const SharedQuadState* shared_quad_state,
26 const gfx::Rect& rect,
27 const gfx::Rect& opaque_rect,
28 const gfx::Rect& visible_rect,
29 const gfx::RectF& tex_coord_rect,
30 const gfx::Size& texture_size,
31 bool nearest_neighbor,
32 ResourceFormat texture_format,
33 const gfx::Rect& content_rect,
34 float contents_scale,
35 scoped_refptr<RasterSource> raster_source);
36
37 void SetAll(const SharedQuadState* shared_quad_state,
38 const gfx::Rect& rect,
39 const gfx::Rect& opaque_rect,
40 const gfx::Rect& visible_rect,
41 bool needs_blending,
42 const gfx::RectF& tex_coord_rect,
43 const gfx::Size& texture_size,
44 bool nearest_neighbor,
45 ResourceFormat texture_format,
46 const gfx::Rect& content_rect,
47 float contents_scale,
48 scoped_refptr<RasterSource> raster_source);
49
50 gfx::Rect content_rect;
51 float contents_scale;
52 scoped_refptr<RasterSource> raster_source;
53 ResourceFormat texture_format;
54
55 void IterateResources(const ResourceIteratorCallback& callback) override;
56
57 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad);
58
59 private:
60 void ExtendValue(base::trace_event::TracedValue* value) const override;
61 };
62
63 } // namespace cc
64
65 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/list_container.h ('k') | cc/quads/picture_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698