{ public: // Called on vsync thread. virtual void OnVSync(base::TimeTicks vsync_time, base::TimeDelta interval) = 0; protected: virtual ~VSyncObserver() {} }; // These methods are not rentrancy safe, and shouldn't be called inside // VSyncObserver::OnVSync. It's ...
(ERROR) << "Failed to retrieve DXGI adapter"; return nullptr; } size_t i = 0; while (true) { Microsoft::WRL::ComPtr<IDXGIOutput> output; if (FAILED(dxgi_adapter->EnumOutputs(i++, &output))) break; DXGI_OUTPUT_DESC desc = {}; if (FAILED(output->GetDesc(&desc))...