OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef TextureHolder_h |
| 6 #define TextureHolder_h |
| 7 |
| 8 #include "gpu/command_buffer/common/mailbox.h" |
| 9 #include "gpu/command_buffer/common/sync_token.h" |
| 10 #include "platform/PlatformExport.h" |
| 11 #include "platform/geometry/IntSize.h" |
| 12 #include "third_party/skia/include/core/SkImage.h" |
| 13 #include "third_party/skia/include/core/SkRefCnt.h" |
| 14 |
| 15 namespace blink { |
| 16 |
| 17 class WebThread; |
| 18 |
| 19 class PLATFORM_EXPORT TextureHolder { |
| 20 public: |
| 21 virtual bool isSkiaTextureHolder() = 0; |
| 22 virtual unsigned sharedContextId() = 0; |
| 23 virtual gpu::Mailbox getMailbox() = 0; |
| 24 virtual gpu::SyncToken getSyncToken() = 0; |
| 25 virtual IntSize getMailboxSize() = 0; |
| 26 virtual void releaseImageThreadSafe() = 0; |
| 27 virtual sk_sp<SkImage> getSkImage() = 0; |
| 28 virtual WebThread* getImageThread() = 0; |
| 29 virtual IntSize size() const = 0; |
| 30 |
| 31 virtual void setSharedContextId(unsigned) = 0; |
| 32 virtual void setImageThread(WebThread*) = 0; |
| 33 virtual void deleteTexture(const int8_t*) = 0; |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // TextureHolder_h |
OLD | NEW |