| 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 23 matching lines...) Expand all Loading... |
| 34 #include "WebSize.h" | 34 #include "WebSize.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 struct WebExternalTextureMailbox { | 38 struct WebExternalTextureMailbox { |
| 39 signed char name[64]; | 39 signed char name[64]; |
| 40 signed char syncToken[24]; | 40 signed char syncToken[24]; |
| 41 bool validSyncToken = false; | 41 bool validSyncToken = false; |
| 42 bool allowOverlay = false; | 42 bool allowOverlay = false; |
| 43 bool nearestNeighbor = false; | 43 bool nearestNeighbor = false; |
| 44 int gpuMemoryBufferId = -1; |
| 44 unsigned textureTarget = 0; | 45 unsigned textureTarget = 0; |
| 45 WebSize textureSize; | 46 WebSize textureSize; |
| 46 | 47 |
| 47 WebExternalTextureMailbox() | 48 WebExternalTextureMailbox() |
| 48 { | 49 { |
| 49 memset(name, 0, sizeof(name)); | 50 memset(name, 0, sizeof(name)); |
| 50 memset(syncToken, 0, sizeof(syncToken)); | 51 memset(syncToken, 0, sizeof(syncToken)); |
| 51 } | 52 } |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 inline bool nameEquals(const WebExternalTextureMailbox& a, const WebExternalText
ureMailbox& b) | 55 inline bool nameEquals(const WebExternalTextureMailbox& a, const WebExternalText
ureMailbox& b) |
| 55 { | 56 { |
| 56 return !memcmp(a.name, b.name, sizeof(a.name)); | 57 return !memcmp(a.name, b.name, sizeof(a.name)); |
| 57 } | 58 } |
| 58 | 59 |
| 59 } // namespace blink | 60 } // namespace blink |
| 60 | 61 |
| 61 #endif // WebExternalTextureMailbox_h | 62 #endif // WebExternalTextureMailbox_h |
| OLD | NEW |