| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/tiled_layer_impl.h" | 5 #include "cc/tiled_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "cc/append_quads_data.h" | 9 #include "cc/append_quads_data.h" |
| 10 #include "cc/checkerboard_draw_quad.h" | 10 #include "cc/checkerboard_draw_quad.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 DrawableTile() | 36 DrawableTile() |
| 37 : m_resourceId(0) | 37 : m_resourceId(0) |
| 38 , m_contentsSwizzled(false) { } | 38 , m_contentsSwizzled(false) { } |
| 39 | 39 |
| 40 ResourceProvider::ResourceId m_resourceId; | 40 ResourceProvider::ResourceId m_resourceId; |
| 41 bool m_contentsSwizzled; | 41 bool m_contentsSwizzled; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(DrawableTile); | 43 DISALLOW_COPY_AND_ASSIGN(DrawableTile); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 TiledLayerImpl::TiledLayerImpl(int id) | 46 TiledLayerImpl::TiledLayerImpl(LayerTreeHostImpl* hostImpl, int id) |
| 47 : LayerImpl(id) | 47 : LayerImpl(hostImpl, id) |
| 48 , m_skipsDraw(true) | 48 , m_skipsDraw(true) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 TiledLayerImpl::~TiledLayerImpl() | 52 TiledLayerImpl::~TiledLayerImpl() |
| 53 { | 53 { |
| 54 } | 54 } |
| 55 | 55 |
| 56 ResourceProvider::ResourceId TiledLayerImpl::contentsResourceId() const | 56 ResourceProvider::ResourceId TiledLayerImpl::contentsResourceId() const |
| 57 { | 57 { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 { | 240 { |
| 241 m_tiler->reset(); | 241 m_tiler->reset(); |
| 242 } | 242 } |
| 243 | 243 |
| 244 const char* TiledLayerImpl::layerTypeAsString() const | 244 const char* TiledLayerImpl::layerTypeAsString() const |
| 245 { | 245 { |
| 246 return "ContentLayer"; | 246 return "ContentLayer"; |
| 247 } | 247 } |
| 248 | 248 |
| 249 } // namespace cc | 249 } // namespace cc |
| OLD | NEW |