| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TILE_DRAW_QUAD_H_ | 5 #ifndef CC_QUADS_TILE_DRAW_QUAD_H_ |
| 6 #define CC_QUADS_TILE_DRAW_QUAD_H_ | 6 #define CC_QUADS_TILE_DRAW_QUAD_H_ |
| 7 | 7 |
| 8 #include "cc/quads/content_draw_quad_base.h" | 8 #include "cc/quads/content_draw_quad_base.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 bool needs_blending, | 34 bool needs_blending, |
| 35 unsigned resource_id, | 35 unsigned resource_id, |
| 36 // |tex_coord_rect| contains non-normalized coordinates. | 36 // |tex_coord_rect| contains non-normalized coordinates. |
| 37 // TODO(reveman): Make the use of normalized vs non-normalized | 37 // TODO(reveman): Make the use of normalized vs non-normalized |
| 38 // coordinates consistent across all quad types: crbug.com/487370 | 38 // coordinates consistent across all quad types: crbug.com/487370 |
| 39 const gfx::RectF& tex_coord_rect, | 39 const gfx::RectF& tex_coord_rect, |
| 40 const gfx::Size& texture_size, | 40 const gfx::Size& texture_size, |
| 41 bool swizzle_contents, | 41 bool swizzle_contents, |
| 42 bool nearest_neighbor); | 42 bool nearest_neighbor); |
| 43 | 43 |
| 44 unsigned resource_id; | |
| 45 | |
| 46 void IterateResources(const ResourceIteratorCallback& callback) override; | |
| 47 | |
| 48 static const TileDrawQuad* MaterialCast(const DrawQuad*); | 44 static const TileDrawQuad* MaterialCast(const DrawQuad*); |
| 49 | 45 |
| 46 ResourceId resource_id() const { return resources.ids[kResourceIdIndex]; } |
| 47 |
| 50 private: | 48 private: |
| 49 static const size_t kResourceIdIndex = 0; |
| 50 |
| 51 void ExtendValue(base::trace_event::TracedValue* value) const override; | 51 void ExtendValue(base::trace_event::TracedValue* value) const override; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace cc | 54 } // namespace cc |
| 55 | 55 |
| 56 #endif // CC_QUADS_TILE_DRAW_QUAD_H_ | 56 #endif // CC_QUADS_TILE_DRAW_QUAD_H_ |
| OLD | NEW |