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 22 matching lines...) Expand all Loading... |
33 const ColorBehavior&) = 0; | 33 const ColorBehavior&) = 0; |
34 | 34 |
35 // Methods have common implementation for all sub-classes | 35 // Methods have common implementation for all sub-classes |
36 bool currentFrameIsComplete() override { return true; } | 36 bool currentFrameIsComplete() override { return true; } |
37 void destroyDecodedData() {} | 37 void destroyDecodedData() {} |
38 | 38 |
39 // Methods that have a default implementation, and overrided by only one | 39 // Methods that have a default implementation, and overrided by only one |
40 // sub-class | 40 // sub-class |
41 virtual bool hasMailbox() { return false; } | 41 virtual bool hasMailbox() { return false; } |
42 | 42 |
| 43 virtual void transfer() {} |
| 44 |
43 // Methods overrided by AcceleratedStaticBitmapImage only | 45 // Methods overrided by AcceleratedStaticBitmapImage only |
44 virtual void copyToTexture(WebGraphicsContext3DProvider*, | 46 virtual void copyToTexture(WebGraphicsContext3DProvider*, |
45 GLuint, | 47 GLuint, |
46 GLenum, | 48 GLenum, |
47 GLenum, | 49 GLenum, |
48 bool) { | 50 bool) { |
49 NOTREACHED(); | 51 NOTREACHED(); |
50 } | 52 } |
51 virtual void ensureMailbox() { NOTREACHED(); } | 53 virtual void ensureMailbox() { NOTREACHED(); } |
52 virtual gpu::Mailbox mailbox() { | 54 virtual gpu::Mailbox mailbox() { |
(...skipping 25 matching lines...) Expand all Loading... |
78 // info. They applied to both UnacceleratedStaticBitmapImage and | 80 // info. They applied to both UnacceleratedStaticBitmapImage and |
79 // AcceleratedStaticBitmapImage. To change these two properties, the call | 81 // AcceleratedStaticBitmapImage. To change these two properties, the call |
80 // site would have to call the API setOriginClean() and setPremultiplied(). | 82 // site would have to call the API setOriginClean() and setPremultiplied(). |
81 bool m_isOriginClean = true; | 83 bool m_isOriginClean = true; |
82 bool m_isPremultiplied = true; | 84 bool m_isPremultiplied = true; |
83 }; | 85 }; |
84 | 86 |
85 } // namespace blink | 87 } // namespace blink |
86 | 88 |
87 #endif | 89 #endif |
OLD | NEW |