summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/dcomp_surface_proxy.h
blob: f29b397661199239557a340770eb421179bc26d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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<DCOMPSurfaceProxy> {
 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<DCOMPSurfaceProxy>;
  virtual ~DCOMPSurfaceProxy() = default;
};

}  // namespace gl

#endif  // UI_GL_DCOMP_SURFACE_PROXY_H_