Fix compilation of MemoryTransferService Read/WriteHandle on Windows

Inner classes needed the macro DAWN_WIRE_EXPORT.

Bug: dawn:156
Change-Id: If45ff9ed14623be32e7821ba3a60791a365bb0dd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9240
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Austin Eng 2019-07-22 19:09:09 +00:00 committed by Commit Bot service account
parent 4e9923cb96
commit 0e338ff986
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ namespace dawn_wire {
virtual ReadHandle* CreateReadHandle(DawnBuffer, uint64_t offset, size_t size);
virtual WriteHandle* CreateWriteHandle(DawnBuffer, uint64_t offset, size_t size);
class ReadHandle {
class DAWN_WIRE_EXPORT ReadHandle {
public:
// Serialize the handle into |serializePointer| so it can be received by the server.
// If |serializePointer| is nullptr, this returns the required serialization space.
@ -93,7 +93,7 @@ namespace dawn_wire {
virtual ~ReadHandle();
};
class WriteHandle {
class DAWN_WIRE_EXPORT WriteHandle {
public:
// Serialize the handle into |serializePointer| so it can be received by the server.
// If |serializePointer| is nullptr, this returns the required serialization space.

View File

@ -63,7 +63,7 @@ namespace dawn_wire {
size_t deserializeSize,
WriteHandle** writeHandle) = 0;
class ReadHandle {
class DAWN_WIRE_EXPORT ReadHandle {
public:
// Initialize the handle data.
// Serialize into |serializePointer| so the client can update handle data.
@ -74,7 +74,7 @@ namespace dawn_wire {
virtual ~ReadHandle();
};
class WriteHandle {
class DAWN_WIRE_EXPORT WriteHandle {
public:
// Set the target for writes from the client. DeserializeFlush should copy data
// into the target.