Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: third_party/WebKit/public/platform/WebExternalTextureMailbox.h

Issue 1957583002: cc: Add GpuMemoryBufferId to TextureMailbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 33
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;
ccameron 2016/05/11 22:18:14 This will need to be populated for the GMB-backed
44 unsigned gpuMemoryBufferId = 0;
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
OLDNEW
« no previous file with comments | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698