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:
parent
4e9923cb96
commit
0e338ff986
|
@ -74,7 +74,7 @@ namespace dawn_wire {
|
||||||
virtual ReadHandle* CreateReadHandle(DawnBuffer, uint64_t offset, size_t size);
|
virtual ReadHandle* CreateReadHandle(DawnBuffer, uint64_t offset, size_t size);
|
||||||
virtual WriteHandle* CreateWriteHandle(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:
|
public:
|
||||||
// Serialize the handle into |serializePointer| so it can be received by the server.
|
// Serialize the handle into |serializePointer| so it can be received by the server.
|
||||||
// If |serializePointer| is nullptr, this returns the required serialization space.
|
// If |serializePointer| is nullptr, this returns the required serialization space.
|
||||||
|
@ -93,7 +93,7 @@ namespace dawn_wire {
|
||||||
virtual ~ReadHandle();
|
virtual ~ReadHandle();
|
||||||
};
|
};
|
||||||
|
|
||||||
class WriteHandle {
|
class DAWN_WIRE_EXPORT WriteHandle {
|
||||||
public:
|
public:
|
||||||
// Serialize the handle into |serializePointer| so it can be received by the server.
|
// Serialize the handle into |serializePointer| so it can be received by the server.
|
||||||
// If |serializePointer| is nullptr, this returns the required serialization space.
|
// If |serializePointer| is nullptr, this returns the required serialization space.
|
||||||
|
|
|
@ -63,7 +63,7 @@ namespace dawn_wire {
|
||||||
size_t deserializeSize,
|
size_t deserializeSize,
|
||||||
WriteHandle** writeHandle) = 0;
|
WriteHandle** writeHandle) = 0;
|
||||||
|
|
||||||
class ReadHandle {
|
class DAWN_WIRE_EXPORT ReadHandle {
|
||||||
public:
|
public:
|
||||||
// Initialize the handle data.
|
// Initialize the handle data.
|
||||||
// Serialize into |serializePointer| so the client can update handle data.
|
// Serialize into |serializePointer| so the client can update handle data.
|
||||||
|
@ -74,7 +74,7 @@ namespace dawn_wire {
|
||||||
virtual ~ReadHandle();
|
virtual ~ReadHandle();
|
||||||
};
|
};
|
||||||
|
|
||||||
class WriteHandle {
|
class DAWN_WIRE_EXPORT WriteHandle {
|
||||||
public:
|
public:
|
||||||
// Set the target for writes from the client. DeserializeFlush should copy data
|
// Set the target for writes from the client. DeserializeFlush should copy data
|
||||||
// into the target.
|
// into the target.
|
||||||
|
|
Loading…
Reference in New Issue