| 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 "platform/graphics/RecordingImageBufferSurface.h" | 5 #include "platform/graphics/RecordingImageBufferSurface.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "platform/Histogram.h" | 8 #include "platform/Histogram.h" |
| 8 #include "platform/graphics/CanvasMetrics.h" | 9 #include "platform/graphics/CanvasMetrics.h" |
| 9 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" | 10 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" |
| 10 #include "platform/graphics/GraphicsContext.h" | 11 #include "platform/graphics/GraphicsContext.h" |
| 11 #include "platform/graphics/ImageBuffer.h" | 12 #include "platform/graphics/ImageBuffer.h" |
| 12 #include "platform/graphics/paint/PaintRecorder.h" | 13 #include "platform/graphics/paint/PaintRecorder.h" |
| 14 #include "third_party/skia/include/core/SkBBHFactory.h" |
| 13 #include "wtf/PassRefPtr.h" | 15 #include "wtf/PassRefPtr.h" |
| 14 #include "wtf/PtrUtil.h" | 16 #include "wtf/PtrUtil.h" |
| 15 #include <memory> | |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 | 19 |
| 19 RecordingImageBufferSurface::RecordingImageBufferSurface( | 20 RecordingImageBufferSurface::RecordingImageBufferSurface( |
| 20 const IntSize& size, | 21 const IntSize& size, |
| 21 std::unique_ptr<RecordingImageBufferFallbackSurfaceFactory> fallbackFactory, | 22 std::unique_ptr<RecordingImageBufferFallbackSurfaceFactory> fallbackFactory, |
| 22 OpacityMode opacityMode, | 23 OpacityMode opacityMode, |
| 23 sk_sp<SkColorSpace> colorSpace, | 24 sk_sp<SkColorSpace> colorSpace, |
| 24 SkColorType colorType) | 25 SkColorType colorType) |
| 25 : ImageBufferSurface(size, opacityMode, std::move(colorSpace), colorType), | 26 : ImageBufferSurface(size, opacityMode, std::move(colorSpace), colorType), |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 } | 406 } |
| 406 | 407 |
| 407 void RecordingImageBufferSurface::setIsHidden(bool hidden) { | 408 void RecordingImageBufferSurface::setIsHidden(bool hidden) { |
| 408 if (m_fallbackSurface) | 409 if (m_fallbackSurface) |
| 409 m_fallbackSurface->setIsHidden(hidden); | 410 m_fallbackSurface->setIsHidden(hidden); |
| 410 else | 411 else |
| 411 ImageBufferSurface::setIsHidden(hidden); | 412 ImageBufferSurface::setIsHidden(hidden); |
| 412 } | 413 } |
| 413 | 414 |
| 414 } // namespace blink | 415 } // namespace blink |
| OLD | NEW |