Browser calls a thread defers to its next round trip to the browser GPU owner. More...
#include <array>#include <atomic>#include <cstddef>#include <cstdint>#include <cstdio>#include <functional>#include <memory>#include <span>#include <string_view>#include <utility>#include <vector>#include "donner/gpu/browser/BrowserBridge.h"Classes | |
| class | donner::gpu::browser::BrowserOwnerChannel |
| How a thread reaches the browser GPU owner: whether its calls cross threads at all, and a synchronous run of one owner callback. More... | |
| class | donner::gpu::browser::BrowserDeferredCalls |
| Browser calls whose answer the calling thread does not wait for, held until its next round trip to the GPU owner carries them, in call order, ahead of that round trip's own call. More... | |
| struct | donner::gpu::browser::BrowserDeferredCalls::Call |
| One held call. More... | |
| struct | donner::gpu::browser::BrowserDeferredCalls::Report |
| What one round trip's held calls reported. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Enumerations | |
| enum class | donner::gpu::browser::BrowserDeferredOperation : uint8_t { WriteBuffer , CreateBindGroup , CreateBindGroupLayout , DestroyObject } |
| The bridge operations a thread defers, and the only ones. The browser bridge passes one of these to defer a call; anything else is a direct round trip. More... | |
Functions | |
| constexpr std::string_view | donner::gpu::browser::BrowserDeferredOperationName (BrowserDeferredOperation operation) |
Bridge method name of operation. | |
Variables | |
| constexpr std::array< std::string_view, 4 > | donner::gpu::browser::kBrowserDeferredOperationNames |
| Bridge method name of each BrowserDeferredOperation, in enumerator order. | |
Browser calls a thread defers to its next round trip to the browser GPU owner.
| struct donner::gpu::browser::BrowserDeferredCalls::Call |
One held call.
| Class Members | ||
|---|---|---|
| function< BridgeStatus()> | execute | |
| uint64_t | objectId = 0 | Identifier of the object it writes, builds or destroys. Runs it on the owner; owns copies of everything it reads. |
| BrowserDeferredOperation | operation = BrowserDeferredOperation::WriteBuffer | Its kind. |
| shared_ptr< BrowserDeferredOrigin > | origin | The device that made it; kept alive by the call. |
| struct donner::gpu::browser::BrowserDeferredCalls::Report |
What one round trip's held calls reported.
| Class Members | ||
|---|---|---|
| bool | carriedCallSkipped = false | |
| uint64_t | objectId = 0 | Its object identifier. |
| BrowserDeferredOperation | operation = BrowserDeferredOperation::WriteBuffer | First refused call. Meaningful when refused is nonzero. |
| size_t | refused = 0 | Refused calls. |
| size_t | skipped = 0 | Calls not run because their device was released. Whether the round trip's own call was not run, because its device had a call refused in the same trip. |
| BridgeStatus | status = BridgeStatus::Success | Its status. |
|
strong |
|
constexpr |
Bridge method name of operation.
| operation | Deferred operation. |
|
inlineconstexpr |
Bridge method name of each BrowserDeferredOperation, in enumerator order.