| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/tile_draw_quad.h" | 7 #include "cc/tile_draw_quad.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 m_needsBlending = true; | 32 m_needsBlending = true; |
| 33 m_opaqueRect = opaqueRect; | 33 m_opaqueRect = opaqueRect; |
| 34 } | 34 } |
| 35 | 35 |
| 36 const TileDrawQuad* TileDrawQuad::materialCast(const DrawQuad* quad) | 36 const TileDrawQuad* TileDrawQuad::materialCast(const DrawQuad* quad) |
| 37 { | 37 { |
| 38 DCHECK(quad->material() == DrawQuad::TiledContent); | 38 DCHECK(quad->material() == DrawQuad::TiledContent); |
| 39 return static_cast<const TileDrawQuad*>(quad); | 39 return static_cast<const TileDrawQuad*>(quad); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } | 42 } // namespace cc |
| OLD | NEW |