| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "platform/graphics/RecordingImageBufferSurface.h" | 7 #include "platform/graphics/RecordingImageBufferSurface.h" |
| 8 | 8 |
| 9 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" | 9 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" |
| 10 #include "platform/graphics/GraphicsContext.h" | 10 #include "platform/graphics/GraphicsContext.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 return ImageBufferSurface::layer(); | 259 return ImageBufferSurface::layer(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 bool RecordingImageBufferSurface::isAccelerated() const | 262 bool RecordingImageBufferSurface::isAccelerated() const |
| 263 { | 263 { |
| 264 if (m_fallbackSurface) | 264 if (m_fallbackSurface) |
| 265 return m_fallbackSurface->isAccelerated(); | 265 return m_fallbackSurface->isAccelerated(); |
| 266 return ImageBufferSurface::isAccelerated(); | 266 return ImageBufferSurface::isAccelerated(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 PassRefPtr<SkImage> RecordingImageBufferSurface::getBackingTextureImage() const | |
| 270 { | |
| 271 if (m_fallbackSurface) | |
| 272 return m_fallbackSurface->getBackingTextureImage(); | |
| 273 return ImageBufferSurface::getBackingTextureImage(); | |
| 274 } | |
| 275 | |
| 276 bool RecordingImageBufferSurface::cachedBitmapEnabled() const | 269 bool RecordingImageBufferSurface::cachedBitmapEnabled() const |
| 277 { | 270 { |
| 278 if (m_fallbackSurface) | 271 if (m_fallbackSurface) |
| 279 return m_fallbackSurface->cachedBitmapEnabled(); | 272 return m_fallbackSurface->cachedBitmapEnabled(); |
| 280 return ImageBufferSurface::cachedBitmapEnabled(); | 273 return ImageBufferSurface::cachedBitmapEnabled(); |
| 281 } | 274 } |
| 282 | 275 |
| 283 const SkBitmap& RecordingImageBufferSurface::cachedBitmap() const | 276 const SkBitmap& RecordingImageBufferSurface::cachedBitmap() const |
| 284 { | 277 { |
| 285 if (m_fallbackSurface) | 278 if (m_fallbackSurface) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 305 | 298 |
| 306 void RecordingImageBufferSurface::setIsHidden(bool hidden) | 299 void RecordingImageBufferSurface::setIsHidden(bool hidden) |
| 307 { | 300 { |
| 308 if (m_fallbackSurface) | 301 if (m_fallbackSurface) |
| 309 m_fallbackSurface->setIsHidden(hidden); | 302 m_fallbackSurface->setIsHidden(hidden); |
| 310 else | 303 else |
| 311 ImageBufferSurface::setIsHidden(hidden); | 304 ImageBufferSurface::setIsHidden(hidden); |
| 312 } | 305 } |
| 313 | 306 |
| 314 } // namespace blink | 307 } // namespace blink |
| OLD | NEW |