Bug 1773359 - Remove TRANSPARENT workaround in webrender bindings. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D148679
This commit is contained in:
@@ -51,6 +51,7 @@ auto READ_CONTROL;
|
||||
auto WRITE_DAC;
|
||||
auto WRITE_OWNER;
|
||||
auto SYNCHRONIZE;
|
||||
auto TRANSPARENT;
|
||||
|
||||
auto MAXIMUM_ALLOWED;
|
||||
auto GENERIC_READ;
|
||||
|
||||
@@ -95,14 +95,8 @@ void omta_sample(mozilla::wr::WrWindowId aWindowId,
|
||||
void omta_deregister_sampler(mozilla::wr::WrWindowId aWindowId);
|
||||
} // extern "C"
|
||||
|
||||
// Work-around wingdi.h define which conflcits with WR color constant
|
||||
#pragma push_macro("TRANSPARENT")
|
||||
#undef TRANSPARENT
|
||||
|
||||
#include "webrender_ffi_generated.h"
|
||||
|
||||
#pragma pop_macro("TRANSPARENT")
|
||||
|
||||
template struct mozilla::wr::Point2D<int32_t, mozilla::wr::DevicePixel>;
|
||||
template struct mozilla::wr::Point2D<int, mozilla::wr::WorldPixel>;
|
||||
template struct mozilla::wr::Point2D<float, mozilla::wr::WorldPixel>;
|
||||
|
||||
Reference in New Issue
Block a user