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 #ifndef StaticBitmapImage_h | 5 #ifndef StaticBitmapImage_h |
6 #define StaticBitmapImage_h | 6 #define StaticBitmapImage_h |
7 | 7 |
8 #include "gpu/command_buffer/common/mailbox.h" | 8 #include "gpu/command_buffer/common/mailbox.h" |
9 #include "gpu/command_buffer/common/sync_token.h" | 9 #include "gpu/command_buffer/common/sync_token.h" |
10 #include "platform/graphics/Image.h" | 10 #include "platform/graphics/Image.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 bool CurrentFrameIsComplete() override { return true; } | 34 bool CurrentFrameIsComplete() override { return true; } |
35 void DestroyDecodedData() {} | 35 void DestroyDecodedData() {} |
36 | 36 |
37 // Methods that have a default implementation, and overrided by only one | 37 // Methods that have a default implementation, and overrided by only one |
38 // sub-class | 38 // sub-class |
39 virtual bool HasMailbox() { return false; } | 39 virtual bool HasMailbox() { return false; } |
40 virtual void Transfer() {} | 40 virtual void Transfer() {} |
41 | 41 |
42 // Methods overrided by AcceleratedStaticBitmapImage only | 42 // Methods overrided by AcceleratedStaticBitmapImage only |
43 virtual void CopyToTexture(WebGraphicsContext3DProvider*, | 43 virtual void CopyToTexture(WebGraphicsContext3DProvider*, |
| 44 GLenum, |
44 GLuint, | 45 GLuint, |
45 GLenum, | 46 bool, |
46 GLenum, | 47 const IntPoint&, |
47 bool) { | 48 const IntRect&) { |
48 NOTREACHED(); | 49 NOTREACHED(); |
49 } | 50 } |
50 virtual void EnsureMailbox() { NOTREACHED(); } | 51 virtual void EnsureMailbox() { NOTREACHED(); } |
51 virtual gpu::Mailbox GetMailbox() { | 52 virtual gpu::Mailbox GetMailbox() { |
52 NOTREACHED(); | 53 NOTREACHED(); |
53 return gpu::Mailbox(); | 54 return gpu::Mailbox(); |
54 } | 55 } |
55 virtual gpu::SyncToken GetSyncToken() { | 56 virtual gpu::SyncToken GetSyncToken() { |
56 NOTREACHED(); | 57 NOTREACHED(); |
57 return gpu::SyncToken(); | 58 return gpu::SyncToken(); |
(...skipping 19 matching lines...) Expand all Loading... |
77 // info. They applied to both UnacceleratedStaticBitmapImage and | 78 // info. They applied to both UnacceleratedStaticBitmapImage and |
78 // AcceleratedStaticBitmapImage. To change these two properties, the call | 79 // AcceleratedStaticBitmapImage. To change these two properties, the call |
79 // site would have to call the API setOriginClean() and setPremultiplied(). | 80 // site would have to call the API setOriginClean() and setPremultiplied(). |
80 bool is_origin_clean_ = true; | 81 bool is_origin_clean_ = true; |
81 bool is_premultiplied_ = true; | 82 bool is_premultiplied_ = true; |
82 }; | 83 }; |
83 | 84 |
84 } // namespace blink | 85 } // namespace blink |
85 | 86 |
86 #endif | 87 #endif |
OLD | NEW |