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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 Region TiledLayerImpl::visibleContentOpaqueRegion() const | 230 Region TiledLayerImpl::visibleContentOpaqueRegion() const |
231 { | 231 { |
232 if (m_skipsDraw) | 232 if (m_skipsDraw) |
233 return Region(); | 233 return Region(); |
234 if (contentsOpaque()) | 234 if (contentsOpaque()) |
235 return visibleContentRect(); | 235 return visibleContentRect(); |
236 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); | 236 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); |
237 } | 237 } |
238 | 238 |
239 void TiledLayerImpl::didLoseOutputSurface() | 239 void TiledLayerImpl::didLoseContext() |
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 |