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 24 matching lines...) Expand all Loading... |
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 | 40 |
41 virtual void transfer() {} | 41 virtual void transfer() {} |
42 | 42 |
43 // Methods overrided by AcceleratedStaticBitmapImage only | 43 // Methods overrided by AcceleratedStaticBitmapImage only |
44 virtual void copyToTexture(WebGraphicsContext3DProvider*, | 44 virtual void copyToTexture(WebGraphicsContext3DProvider*, |
| 45 GLenum, |
45 GLuint, | 46 GLuint, |
46 GLenum, | 47 bool, |
47 GLenum, | 48 const IntPoint&, |
48 bool) { | 49 const IntRect&) { |
49 NOTREACHED(); | 50 NOTREACHED(); |
50 } | 51 } |
51 virtual void ensureMailbox() { NOTREACHED(); } | 52 virtual void ensureMailbox() { NOTREACHED(); } |
52 virtual gpu::Mailbox mailbox() { | 53 virtual gpu::Mailbox mailbox() { |
53 NOTREACHED(); | 54 NOTREACHED(); |
54 return gpu::Mailbox(); | 55 return gpu::Mailbox(); |
55 } | 56 } |
56 virtual gpu::SyncToken syncToken() { | 57 virtual gpu::SyncToken syncToken() { |
57 NOTREACHED(); | 58 NOTREACHED(); |
58 return gpu::SyncToken(); | 59 return gpu::SyncToken(); |
(...skipping 19 matching lines...) Expand all Loading... |
78 // info. They applied to both UnacceleratedStaticBitmapImage and | 79 // info. They applied to both UnacceleratedStaticBitmapImage and |
79 // AcceleratedStaticBitmapImage. To change these two properties, the call | 80 // AcceleratedStaticBitmapImage. To change these two properties, the call |
80 // site would have to call the API setOriginClean() and setPremultiplied(). | 81 // site would have to call the API setOriginClean() and setPremultiplied(). |
81 bool m_isOriginClean = true; | 82 bool m_isOriginClean = true; |
82 bool m_isPremultiplied = true; | 83 bool m_isPremultiplied = true; |
83 }; | 84 }; |
84 | 85 |
85 } // namespace blink | 86 } // namespace blink |
86 | 87 |
87 #endif | 88 #endif |
OLD | NEW |