Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebExternalTextureMailbox_h | 31 #ifndef WebExternalTextureMailbox_h |
| 32 #define WebExternalTextureMailbox_h | 32 #define WebExternalTextureMailbox_h |
| 33 | 33 |
| 34 #include "WebSize.h" | 34 #include "WebSize.h" |
| 35 | 35 |
| 36 class SkColorSpace; | |
| 37 | |
| 36 namespace blink { | 38 namespace blink { |
| 37 | 39 |
| 38 struct WebExternalTextureMailbox { | 40 struct WebExternalTextureMailbox { |
| 39 signed char name[64]; | 41 signed char name[64]; |
| 40 signed char syncToken[24]; | 42 signed char syncToken[24]; |
| 41 bool validSyncToken = false; | 43 bool validSyncToken = false; |
| 42 bool allowOverlay = false; | 44 bool allowOverlay = false; |
| 43 bool nearestNeighbor = false; | 45 bool nearestNeighbor = false; |
| 44 unsigned textureTarget = 0; | 46 unsigned textureTarget = 0; |
| 45 WebSize textureSize; | 47 WebSize textureSize; |
| 48 const SkColorSpace* colorSpace; | |
|
Stephen White
2016/08/12 19:48:31
Maybe we should document that WebExternalTextureMa
Justin Novosad
2016/08/12 20:08:49
Done.
| |
| 46 | 49 |
| 47 WebExternalTextureMailbox() | 50 WebExternalTextureMailbox() |
| 48 { | 51 { |
| 49 memset(name, 0, sizeof(name)); | 52 memset(name, 0, sizeof(name)); |
| 50 memset(syncToken, 0, sizeof(syncToken)); | 53 memset(syncToken, 0, sizeof(syncToken)); |
| 51 } | 54 } |
| 55 | |
| 56 ~WebExternalTextureMailbox() { } | |
| 52 }; | 57 }; |
| 53 | 58 |
| 54 inline bool nameEquals(const WebExternalTextureMailbox& a, const WebExternalText ureMailbox& b) | 59 inline bool nameEquals(const WebExternalTextureMailbox& a, const WebExternalText ureMailbox& b) |
| 55 { | 60 { |
| 56 return !memcmp(a.name, b.name, sizeof(a.name)); | 61 return !memcmp(a.name, b.name, sizeof(a.name)); |
| 57 } | 62 } |
| 58 | 63 |
| 59 } // namespace blink | 64 } // namespace blink |
| 60 | 65 |
| 61 #endif // WebExternalTextureMailbox_h | 66 #endif // WebExternalTextureMailbox_h |
| OLD | NEW |