Fix a type mismatch on Windows caused by r201738.
[chromium-blink-merge.git] / cc / quads / picture_draw_quad.h
blob29af6d5c6dcbdb21b54019e12bf1f2f8113d638a
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.
5 #ifndef CC_QUADS_PICTURE_DRAW_QUAD_H_
6 #define CC_QUADS_PICTURE_DRAW_QUAD_H_
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/picture_pile_impl.h"
13 #include "ui/gfx/rect.h"
14 #include "ui/gfx/rect_f.h"
15 #include "ui/gfx/size.h"
17 namespace cc {
19 // Used for on-demand tile rasterization.
20 class CC_EXPORT PictureDrawQuad : public ContentDrawQuadBase {
21 public:
22 static scoped_ptr<PictureDrawQuad> Create();
23 virtual ~PictureDrawQuad();
25 void SetNew(const SharedQuadState* shared_quad_state,
26 gfx::Rect rect,
27 gfx::Rect opaque_rect,
28 const gfx::RectF& tex_coord_rect,
29 gfx::Size texture_size,
30 bool swizzle_contents,
31 gfx::Rect content_rect,
32 float contents_scale,
33 bool can_draw_direct_to_backbuffer,
34 scoped_refptr<PicturePileImpl> picture_pile);
36 void SetAll(const SharedQuadState* shared_quad_state,
37 gfx::Rect rect,
38 gfx::Rect opaque_rect,
39 gfx::Rect visible_rect,
40 bool needs_blending,
41 const gfx::RectF& tex_coord_rect,
42 gfx::Size texture_size,
43 bool swizzle_contents,
44 gfx::Rect content_rect,
45 float contents_scale,
46 bool can_draw_direct_to_backbuffer,
47 scoped_refptr<PicturePileImpl> picture_pile);
49 gfx::Rect content_rect;
50 float contents_scale;
51 bool can_draw_direct_to_backbuffer;
52 scoped_refptr<PicturePileImpl> picture_pile;
54 virtual void IterateResources(const ResourceIteratorCallback& callback)
55 OVERRIDE;
57 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad);
59 private:
60 PictureDrawQuad();
63 } // namespace cc
65 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_