| 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 "gpu/ipc/common/surface_handle.h" | 10 #include "gpu/ipc/common/surface_handle.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 GpuSurfaceLookup() {} | 23 GpuSurfaceLookup() {} |
| 24 virtual ~GpuSurfaceLookup() {} | 24 virtual ~GpuSurfaceLookup() {} |
| 25 | 25 |
| 26 static GpuSurfaceLookup* GetInstance(); | 26 static GpuSurfaceLookup* GetInstance(); |
| 27 static void InitInstance(GpuSurfaceLookup* lookup); | 27 static void InitInstance(GpuSurfaceLookup* lookup); |
| 28 | 28 |
| 29 virtual gfx::AcceleratedWidget AcquireNativeWidget( | 29 virtual gfx::AcceleratedWidget AcquireNativeWidget( |
| 30 gpu::SurfaceHandle surface_handle) = 0; | 30 gpu::SurfaceHandle surface_handle) = 0; |
| 31 | 31 |
| 32 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
| 33 virtual gfx::ScopedJavaSurface AcquireJavaSurface(int surface_id) = 0; | 33 virtual gl::ScopedJavaSurface AcquireJavaSurface(int surface_id) = 0; |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); | 37 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace gpu | 40 } // namespace gpu |
| 41 | 41 |
| 42 #endif // GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ | 42 #endif // GPU_IPC_COMMON_GPU_SURFACE_LOOKUP_H_ |
| OLD | NEW |