OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_PICTURE_DRAW_QUAD_H_ | 5 #ifndef CC_QUADS_PICTURE_DRAW_QUAD_H_ |
6 #define CC_QUADS_PICTURE_DRAW_QUAD_H_ | 6 #define CC_QUADS_PICTURE_DRAW_QUAD_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 virtual ~PictureDrawQuad(); | 23 virtual ~PictureDrawQuad(); |
24 | 24 |
25 void SetNew(const SharedQuadState* shared_quad_state, | 25 void SetNew(const SharedQuadState* shared_quad_state, |
26 gfx::Rect rect, | 26 gfx::Rect rect, |
27 gfx::Rect opaque_rect, | 27 gfx::Rect opaque_rect, |
28 const gfx::RectF& tex_coord_rect, | 28 const gfx::RectF& tex_coord_rect, |
29 gfx::Size texture_size, | 29 gfx::Size texture_size, |
30 bool swizzle_contents, | 30 bool swizzle_contents, |
31 gfx::Rect content_rect, | 31 gfx::Rect content_rect, |
32 float contents_scale, | 32 float contents_scale, |
| 33 bool can_draw_direct_to_backbuffer, |
33 scoped_refptr<PicturePileImpl> picture_pile); | 34 scoped_refptr<PicturePileImpl> picture_pile); |
34 | 35 |
35 void SetAll(const SharedQuadState* shared_quad_state, | 36 void SetAll(const SharedQuadState* shared_quad_state, |
36 gfx::Rect rect, | 37 gfx::Rect rect, |
37 gfx::Rect opaque_rect, | 38 gfx::Rect opaque_rect, |
38 gfx::Rect visible_rect, | 39 gfx::Rect visible_rect, |
39 bool needs_blending, | 40 bool needs_blending, |
40 const gfx::RectF& tex_coord_rect, | 41 const gfx::RectF& tex_coord_rect, |
41 gfx::Size texture_size, | 42 gfx::Size texture_size, |
42 bool swizzle_contents, | 43 bool swizzle_contents, |
43 gfx::Rect content_rect, | 44 gfx::Rect content_rect, |
44 float contents_scale, | 45 float contents_scale, |
| 46 bool can_draw_direct_to_backbuffer, |
45 scoped_refptr<PicturePileImpl> picture_pile); | 47 scoped_refptr<PicturePileImpl> picture_pile); |
46 | 48 |
47 gfx::Rect content_rect; | 49 gfx::Rect content_rect; |
48 float contents_scale; | 50 float contents_scale; |
| 51 bool can_draw_direct_to_backbuffer; |
49 scoped_refptr<PicturePileImpl> picture_pile; | 52 scoped_refptr<PicturePileImpl> picture_pile; |
50 | 53 |
51 virtual void IterateResources(const ResourceIteratorCallback& callback) | 54 virtual void IterateResources(const ResourceIteratorCallback& callback) |
52 OVERRIDE; | 55 OVERRIDE; |
53 | 56 |
54 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); | 57 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); |
55 | 58 |
56 private: | 59 private: |
57 PictureDrawQuad(); | 60 PictureDrawQuad(); |
58 }; | 61 }; |
59 | 62 |
60 } // namespace cc | 63 } // namespace cc |
61 | 64 |
62 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ | 65 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ |
OLD | NEW |