mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Add dawn_platform::Platform for handling tracing events in Dawn
This patch provides Chromium TRACE_EVENT macros and hooks for implementing the TRACE_EVENT api. Bug: chromium:958013 Change-Id: I033b1c7ca57c550504a1bea1898a1a152831922b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7060 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
35670f183a
commit
d4ce736d18
@@ -15,6 +15,7 @@
|
||||
#include "dawn_native/DawnNative.h"
|
||||
#include "dawn_native/Device.h"
|
||||
#include "dawn_native/Instance.h"
|
||||
#include "dawn_platform/DawnPlatform.h"
|
||||
|
||||
// Contains the entry-points into dawn_native
|
||||
|
||||
@@ -120,6 +121,14 @@ namespace dawn_native {
|
||||
return mImpl->IsBeginCaptureOnStartupEnabled();
|
||||
}
|
||||
|
||||
void Instance::SetPlatform(dawn_platform::Platform* platform) {
|
||||
mImpl->SetPlatform(platform);
|
||||
}
|
||||
|
||||
dawn_platform::Platform* Instance::GetPlatform() const {
|
||||
return mImpl->GetPlatform();
|
||||
}
|
||||
|
||||
size_t GetLazyClearCountForTesting(DawnDevice device) {
|
||||
dawn_native::DeviceBase* deviceBase = reinterpret_cast<dawn_native::DeviceBase*>(device);
|
||||
return deviceBase->GetLazyClearCountForTesting();
|
||||
|
||||
Reference in New Issue
Block a user