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_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ | 5 #ifndef GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ |
6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ | 6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
29 GPU_EXPORT static void SetAllowOSMesaForTesting(bool allow); | 29 GPU_EXPORT static void SetAllowOSMesaForTesting(bool allow); |
30 #endif | 30 #endif |
31 | 31 |
32 // Creates the appropriate native surface depending on the GL implementation. | 32 // Creates the appropriate native surface depending on the GL implementation. |
33 // This will be implemented separately by each platform. On failure, a null | 33 // This will be implemented separately by each platform. On failure, a null |
34 // scoped_refptr should be returned. | 34 // scoped_refptr should be returned. |
35 static scoped_refptr<gl::GLSurface> CreateNativeSurface( | 35 static scoped_refptr<gl::GLSurface> CreateNativeSurface( |
36 base::WeakPtr<ImageTransportSurfaceDelegate> stub, | 36 base::WeakPtr<ImageTransportSurfaceDelegate> stub, |
37 SurfaceHandle surface_handle, | 37 SurfaceHandle surface_handle, |
38 gl::GLSurface::Format format); | 38 gl::GLSurfaceFormat format); |
39 | 39 |
40 private: | 40 private: |
41 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface); | 41 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace gpu | 44 } // namespace gpu |
45 | 45 |
46 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ | 46 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |