Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / content / common / gpu / gpu_surface_lookup.h
blob3ec4a6d9042b318948fe5be7adadd7f4ef5f7c0c
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
6 #define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
8 #include "content/common/content_export.h"
9 #include "ui/gfx/native_widget_types.h"
11 namespace content {
13 // This class provides an interface to look up window surface handles
14 // that cannot be sent through the IPC channel.
15 class CONTENT_EXPORT GpuSurfaceLookup {
16 public:
17 GpuSurfaceLookup() { }
18 virtual ~GpuSurfaceLookup() { }
20 static GpuSurfaceLookup* GetInstance();
21 static void InitInstance(GpuSurfaceLookup* lookup);
23 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) = 0;
25 private:
26 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup);
29 } // namespace content
31 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_