| 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 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 PictureDrawQuad(); | 22 PictureDrawQuad(); |
| 23 ~PictureDrawQuad() override; | 23 ~PictureDrawQuad() override; |
| 24 | 24 |
| 25 void SetNew(const SharedQuadState* shared_quad_state, | 25 void SetNew(const SharedQuadState* shared_quad_state, |
| 26 const gfx::Rect& rect, | 26 const gfx::Rect& rect, |
| 27 const gfx::Rect& opaque_rect, | 27 const gfx::Rect& opaque_rect, |
| 28 const gfx::Rect& visible_rect, | 28 const gfx::Rect& visible_rect, |
| 29 const gfx::RectF& tex_coord_rect, | 29 const gfx::RectF& tex_coord_rect, |
| 30 const gfx::Size& texture_size, | 30 const gfx::Size& texture_size, |
| 31 bool nearest_neighbor, |
| 31 ResourceFormat texture_format, | 32 ResourceFormat texture_format, |
| 32 const gfx::Rect& content_rect, | 33 const gfx::Rect& content_rect, |
| 33 float contents_scale, | 34 float contents_scale, |
| 34 scoped_refptr<RasterSource> raster_source); | 35 scoped_refptr<RasterSource> raster_source); |
| 35 | 36 |
| 36 void SetAll(const SharedQuadState* shared_quad_state, | 37 void SetAll(const SharedQuadState* shared_quad_state, |
| 37 const gfx::Rect& rect, | 38 const gfx::Rect& rect, |
| 38 const gfx::Rect& opaque_rect, | 39 const gfx::Rect& opaque_rect, |
| 39 const gfx::Rect& visible_rect, | 40 const gfx::Rect& visible_rect, |
| 40 bool needs_blending, | 41 bool needs_blending, |
| 41 const gfx::RectF& tex_coord_rect, | 42 const gfx::RectF& tex_coord_rect, |
| 42 const gfx::Size& texture_size, | 43 const gfx::Size& texture_size, |
| 44 bool nearest_neighbor, |
| 43 ResourceFormat texture_format, | 45 ResourceFormat texture_format, |
| 44 const gfx::Rect& content_rect, | 46 const gfx::Rect& content_rect, |
| 45 float contents_scale, | 47 float contents_scale, |
| 46 scoped_refptr<RasterSource> raster_source); | 48 scoped_refptr<RasterSource> raster_source); |
| 47 | 49 |
| 48 gfx::Rect content_rect; | 50 gfx::Rect content_rect; |
| 49 float contents_scale; | 51 float contents_scale; |
| 50 scoped_refptr<RasterSource> raster_source; | 52 scoped_refptr<RasterSource> raster_source; |
| 51 ResourceFormat texture_format; | 53 ResourceFormat texture_format; |
| 52 | 54 |
| 53 void IterateResources(const ResourceIteratorCallback& callback) override; | 55 void IterateResources(const ResourceIteratorCallback& callback) override; |
| 54 | 56 |
| 55 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); | 57 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); |
| 56 | 58 |
| 57 private: | 59 private: |
| 58 void ExtendValue(base::debug::TracedValue* value) const override; | 60 void ExtendValue(base::debug::TracedValue* value) const override; |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace cc | 63 } // namespace cc |
| 62 | 64 |
| 63 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ | 65 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ |
| OLD | NEW |