| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "CCTiledLayerImpl.h" | 9 #include "CCTiledLayerImpl.h" |
| 10 | 10 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 if (!tile) | 195 if (!tile) |
| 196 tile = createTile(i, j); | 196 tile = createTile(i, j); |
| 197 tile->setResourceId(resourceId); | 197 tile->setResourceId(resourceId); |
| 198 tile->setOpaqueRect(opaqueRect); | 198 tile->setOpaqueRect(opaqueRect); |
| 199 } | 199 } |
| 200 | 200 |
| 201 Region CCTiledLayerImpl::visibleContentOpaqueRegion() const | 201 Region CCTiledLayerImpl::visibleContentOpaqueRegion() const |
| 202 { | 202 { |
| 203 if (m_skipsDraw) | 203 if (m_skipsDraw) |
| 204 return Region(); | 204 return Region(); |
| 205 if (opaque()) | 205 if (contentsOpaque()) |
| 206 return visibleContentRect(); | 206 return visibleContentRect(); |
| 207 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); | 207 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void CCTiledLayerImpl::didLoseContext() | 210 void CCTiledLayerImpl::didLoseContext() |
| 211 { | 211 { |
| 212 m_tiler->reset(); | 212 m_tiler->reset(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 const char* CCTiledLayerImpl::layerTypeAsString() const | 215 const char* CCTiledLayerImpl::layerTypeAsString() const |
| 216 { | 216 { |
| 217 return "ContentLayer"; | 217 return "ContentLayer"; |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // namespace cc | 220 } // namespace cc |
| 221 | 221 |
| 222 #endif // USE(ACCELERATED_COMPOSITING) | 222 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |