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/graphics/StaticBitmapImage.h" | 9 #include "platform/graphics/StaticBitmapImage.h" |
10 #include "platform/graphics/TextureHolder.h" | 10 #include "platform/graphics/TextureHolder.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 bool IsTextureBacked() const override { return true; } | 42 bool IsTextureBacked() const override { return true; } |
43 | 43 |
44 void Draw(PaintCanvas*, | 44 void Draw(PaintCanvas*, |
45 const PaintFlags&, | 45 const PaintFlags&, |
46 const FloatRect& dst_rect, | 46 const FloatRect& dst_rect, |
47 const FloatRect& src_rect, | 47 const FloatRect& src_rect, |
48 RespectImageOrientationEnum, | 48 RespectImageOrientationEnum, |
49 ImageClampingMode) override; | 49 ImageClampingMode) override; |
50 | 50 |
51 void CopyToTexture(WebGraphicsContext3DProvider*, | 51 void CopyToTexture(WebGraphicsContext3DProvider*, |
| 52 GLenum dest_target, |
52 GLuint dest_texture_id, | 53 GLuint dest_texture_id, |
53 GLenum dest_internal_format, | 54 bool flip_y, |
54 GLenum dest_type, | 55 const IntPoint& dest_point, |
55 bool flip_y) override; | 56 const IntRect& source_sub_rectangle) override; |
56 | 57 |
57 bool HasMailbox() final { return texture_holder_->IsMailboxTextureHolder(); } | 58 bool HasMailbox() final { return texture_holder_->IsMailboxTextureHolder(); } |
58 // To be called on sender thread before performing a transfer | 59 // To be called on sender thread before performing a transfer |
59 void Transfer() final; | 60 void Transfer() final; |
60 | 61 |
61 void EnsureMailbox() final; | 62 void EnsureMailbox() final; |
62 gpu::Mailbox GetMailbox() final { return texture_holder_->GetMailbox(); } | 63 gpu::Mailbox GetMailbox() final { return texture_holder_->GetMailbox(); } |
63 gpu::SyncToken GetSyncToken() final { | 64 gpu::SyncToken GetSyncToken() final { |
64 return texture_holder_->GetSyncToken(); | 65 return texture_holder_->GetSyncToken(); |
65 } | 66 } |
(...skipping 14 matching lines...) Expand all Loading... |
80 | 81 |
81 std::unique_ptr<TextureHolder> texture_holder_; | 82 std::unique_ptr<TextureHolder> texture_holder_; |
82 | 83 |
83 base::ThreadChecker thread_checker_; | 84 base::ThreadChecker thread_checker_; |
84 bool detach_thread_at_next_check_ = false; | 85 bool detach_thread_at_next_check_ = false; |
85 }; | 86 }; |
86 | 87 |
87 } // namespace blink | 88 } // namespace blink |
88 | 89 |
89 #endif | 90 #endif |
OLD | NEW |