| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ | 6 #define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 namespace content { |
| 11 |
| 10 // This class provides an interface to look up window surface handles | 12 // This class provides an interface to look up window surface handles |
| 11 // that cannot be sent through the IPC channel. | 13 // that cannot be sent through the IPC channel. |
| 12 class GpuSurfaceLookup { | 14 class GpuSurfaceLookup { |
| 13 public: | 15 public: |
| 14 GpuSurfaceLookup() { } | 16 GpuSurfaceLookup() { } |
| 15 virtual ~GpuSurfaceLookup() { } | 17 virtual ~GpuSurfaceLookup() { } |
| 16 | 18 |
| 17 static GpuSurfaceLookup* GetInstance(); | 19 static GpuSurfaceLookup* GetInstance(); |
| 18 static void InitInstance(GpuSurfaceLookup* lookup); | 20 static void InitInstance(GpuSurfaceLookup* lookup); |
| 19 | 21 |
| 20 virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) = 0; | 22 virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) = 0; |
| 21 | 23 |
| 22 private: | 24 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); | 25 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); |
| 24 }; | 26 }; |
| 25 | 27 |
| 28 } // namespace content |
| 29 |
| 26 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ | 30 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ |
| OLD | NEW |