summaryrefslogtreecommitdiff
path: root/chromium/components/viz/common/display/use_layered_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/viz/common/display/use_layered_window.h')
-rw-r--r--chromium/components/viz/common/display/use_layered_window.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/components/viz/common/display/use_layered_window.h b/chromium/components/viz/common/display/use_layered_window.h
new file mode 100644
index 00000000000..2db19f310df
--- /dev/null
+++ b/chromium/components/viz/common/display/use_layered_window.h
@@ -0,0 +1,20 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_VIZ_COMMON_DISPLAY_USE_LAYERED_WINDOW_H_
+#define COMPONENTS_VIZ_COMMON_DISPLAY_USE_LAYERED_WINDOW_H_
+
+#include <windows.h>
+
+#include "components/viz/common/viz_common_export.h"
+
+namespace viz {
+
+// Checks if an HWND needs to support transparency and should use a layered
+// window.
+VIZ_COMMON_EXPORT bool NeedsToUseLayerWindow(HWND hwnd);
+
+} // namespace viz
+
+#endif // COMPONENTS_VIZ_COMMON_DISPLAY_USE_LAYERED_WINDOW_H_