| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef AcceleratedStaticBitmapImage_h | 5 #ifndef AcceleratedStaticBitmapImage_h |
| 6 #define AcceleratedStaticBitmapImage_h | 6 #define AcceleratedStaticBitmapImage_h |
| 7 | 7 |
| 8 #include "base/threading/thread_checker.h" | 8 #include "base/threading/thread_checker.h" |
| 9 #include "platform/geometry/IntSize.h" | 9 #include "platform/geometry/IntSize.h" |
| 10 #include "platform/graphics/StaticBitmapImage.h" | 10 #include "platform/graphics/StaticBitmapImage.h" |
| 11 #include "third_party/skia/include/core/SkRefCnt.h" | 11 #include "third_party/skia/include/core/SkRefCnt.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 class GrContext; | 15 class GrContext; |
| 16 | 16 |
| 17 namespace cc { | |
| 18 class SingleReleaseCallback; | |
| 19 } | |
| 20 | |
| 21 namespace blink { | 17 namespace blink { |
| 22 class WebThread; | 18 class WebThread; |
| 23 | 19 |
| 24 class PLATFORM_EXPORT AcceleratedStaticBitmapImage final | 20 class PLATFORM_EXPORT AcceleratedStaticBitmapImage final |
| 25 : public StaticBitmapImage { | 21 : public StaticBitmapImage { |
| 26 public: | 22 public: |
| 27 // SkImage with a texture backing that is assumed to be from the shared | 23 // SkImage with a texture backing that is assumed to be from the shared |
| 28 // context of the current thread. | 24 // context of the current thread. |
| 29 static PassRefPtr<AcceleratedStaticBitmapImage> createFromSharedContextImage( | 25 static PassRefPtr<AcceleratedStaticBitmapImage> createFromSharedContextImage( |
| 30 sk_sp<SkImage>); | 26 sk_sp<SkImage>); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // after a transfer. | 86 // after a transfer. |
| 91 WebThread* m_imageThread = nullptr; | 87 WebThread* m_imageThread = nullptr; |
| 92 | 88 |
| 93 base::ThreadChecker m_threadChecker; | 89 base::ThreadChecker m_threadChecker; |
| 94 bool m_detachThreadAtNextCheck = false; | 90 bool m_detachThreadAtNextCheck = false; |
| 95 }; | 91 }; |
| 96 | 92 |
| 97 } // namespace blink | 93 } // namespace blink |
| 98 | 94 |
| 99 #endif | 95 #endif |
| OLD | NEW |