| 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 GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ | 5 #ifndef GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ |
| 6 #define GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ | 6 #define GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "gpu/gpu_export.h" | 9 #include "gpu/gpu_export.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 GpuSurfaceLookup() {} | 22 GpuSurfaceLookup() {} |
| 23 virtual ~GpuSurfaceLookup() {} | 23 virtual ~GpuSurfaceLookup() {} |
| 24 | 24 |
| 25 static GpuSurfaceLookup* GetInstance(); | 25 static GpuSurfaceLookup* GetInstance(); |
| 26 static void InitInstance(GpuSurfaceLookup* lookup); | 26 static void InitInstance(GpuSurfaceLookup* lookup); |
| 27 | 27 |
| 28 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) = 0; | 28 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) = 0; |
| 29 | 29 |
| 30 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
| 31 virtual gfx::ScopedJavaSurface AcquireJavaSurface(int surface_id); | 31 virtual gfx::ScopedJavaSurface AcquireJavaSurface(int surface_id) = 0; |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); | 35 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace gpu | 38 } // namespace gpu |
| 39 | 39 |
| 40 #endif // GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ | 40 #endif // GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ |
| OLD | NEW |