| Index: content/common/gpu/gpu_surface_lookup.h
|
| diff --git a/content/common/gpu/gpu_surface_lookup.h b/content/common/gpu/gpu_surface_lookup.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5ffaf619117e466f1f41fa6edf1958e4fff631bb
|
| --- /dev/null
|
| +++ b/content/common/gpu/gpu_surface_lookup.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
|
| +#define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
|
| +
|
| +#include "ui/gfx/native_widget_types.h"
|
| +
|
| +// This class provides an interface to look up window surface handles
|
| +// that cannot be sent through the IPC channel.
|
| +class GpuSurfaceLookup {
|
| + public:
|
| + GpuSurfaceLookup() { }
|
| + virtual ~GpuSurfaceLookup() { }
|
| +
|
| + static GpuSurfaceLookup* GetInstance();
|
| + static void InitInstance(GpuSurfaceLookup* lookup);
|
| +
|
| + virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) = 0;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup);
|
| +};
|
| +
|
| +#endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
|
|
|