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" |
13 #include "wtf/PassRefPtr.h" | 14 #include "wtf/PassRefPtr.h" |
14 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
15 #include <memory> | |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 RecordingImageBufferSurface::RecordingImageBufferSurface( | 19 RecordingImageBufferSurface::RecordingImageBufferSurface( |
20 const IntSize& size, | 20 const IntSize& size, |
21 std::unique_ptr<RecordingImageBufferFallbackSurfaceFactory> fallbackFactory, | 21 std::unique_ptr<RecordingImageBufferFallbackSurfaceFactory> fallbackFactory, |
22 OpacityMode opacityMode, | 22 OpacityMode opacityMode, |
23 sk_sp<SkColorSpace> colorSpace, | 23 sk_sp<SkColorSpace> colorSpace, |
24 SkColorType colorType) | 24 SkColorType colorType) |
25 : ImageBufferSurface(size, opacityMode, std::move(colorSpace), colorType), | 25 : ImageBufferSurface(size, opacityMode, std::move(colorSpace), colorType), |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 } | 406 } |
407 | 407 |
408 void RecordingImageBufferSurface::setIsHidden(bool hidden) { | 408 void RecordingImageBufferSurface::setIsHidden(bool hidden) { |
409 if (m_fallbackSurface) | 409 if (m_fallbackSurface) |
410 m_fallbackSurface->setIsHidden(hidden); | 410 m_fallbackSurface->setIsHidden(hidden); |
411 else | 411 else |
412 ImageBufferSurface::setIsHidden(hidden); | 412 ImageBufferSurface::setIsHidden(hidden); |
413 } | 413 } |
414 | 414 |
415 } // namespace blink | 415 } // namespace blink |
OLD | NEW |