// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_GL_DCOMP_SURFACE_PROXY_H_ #define UI_GL_DCOMP_SURFACE_PROXY_H_ #include "base/memory/ref_counted.h" #include "ui/gfx/geometry/rect.h" namespace gl { class DCOMPSurfaceProxy : public base::RefCounted { public: virtual const gfx::Size& GetSize() const = 0; virtual HANDLE GetSurfaceHandle() = 0; virtual void SetRect(const gfx::Rect& window_relative_rect) = 0; virtual void SetParentWindow(HWND parent) = 0; protected: friend class base::RefCounted; virtual ~DCOMPSurfaceProxy() = default; }; } // namespace gl #endif // UI_GL_DCOMP_SURFACE_PROXY_H_