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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 ResourceFormat texture_format, | 46 ResourceFormat texture_format, |
47 const gfx::Rect& content_rect, | 47 const gfx::Rect& content_rect, |
48 float contents_scale, | 48 float contents_scale, |
49 scoped_refptr<RasterSource> raster_source); | 49 scoped_refptr<RasterSource> raster_source); |
50 | 50 |
51 gfx::Rect content_rect; | 51 gfx::Rect content_rect; |
52 float contents_scale; | 52 float contents_scale; |
53 scoped_refptr<RasterSource> raster_source; | 53 scoped_refptr<RasterSource> raster_source; |
54 ResourceFormat texture_format; | 54 ResourceFormat texture_format; |
55 | 55 |
56 void IterateResources(const ResourceIteratorCallback& callback) override; | |
57 | |
58 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); | 56 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); |
59 | 57 |
60 private: | 58 private: |
61 void ExtendValue(base::trace_event::TracedValue* value) const override; | 59 void ExtendValue(base::trace_event::TracedValue* value) const override; |
62 }; | 60 }; |
63 | 61 |
64 } // namespace cc | 62 } // namespace cc |
65 | 63 |
66 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ | 64 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ |
OLD | NEW |