| 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 #include "cc/tile_draw_quad.h" | 5 #include "cc/tile_draw_quad.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "third_party/khronos/GLES2/gl2.h" | 8 #include "third_party/khronos/GLES2/gl2.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 this->resource_id = resource_id; | 68 this->resource_id = resource_id; |
| 69 this->tex_coord_rect = tex_coord_rect; | 69 this->tex_coord_rect = tex_coord_rect; |
| 70 this->texture_size = texture_size; | 70 this->texture_size = texture_size; |
| 71 this->swizzle_contents = swizzle_contents; | 71 this->swizzle_contents = swizzle_contents; |
| 72 this->left_edge_aa = left_edge_aa; | 72 this->left_edge_aa = left_edge_aa; |
| 73 this->top_edge_aa = top_edge_aa; | 73 this->top_edge_aa = top_edge_aa; |
| 74 this->right_edge_aa = right_edge_aa; | 74 this->right_edge_aa = right_edge_aa; |
| 75 this->bottom_edge_aa = bottom_edge_aa; | 75 this->bottom_edge_aa = bottom_edge_aa; |
| 76 } | 76 } |
| 77 | 77 |
| 78 void TileDrawQuad::AppendResources( |
| 79 ResourceProvider::ResourceIdArray* resources) { |
| 80 resources->push_back(resource_id); |
| 81 } |
| 82 |
| 78 const TileDrawQuad* TileDrawQuad::MaterialCast( | 83 const TileDrawQuad* TileDrawQuad::MaterialCast( |
| 79 const DrawQuad* quad) { | 84 const DrawQuad* quad) { |
| 80 DCHECK(quad->material == DrawQuad::TILED_CONTENT); | 85 DCHECK(quad->material == DrawQuad::TILED_CONTENT); |
| 81 return static_cast<const TileDrawQuad*>(quad); | 86 return static_cast<const TileDrawQuad*>(quad); |
| 82 } | 87 } |
| 83 | 88 |
| 84 } // namespace cc | 89 } // namespace cc |
| OLD | NEW |