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_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "gles2_impl_export.h" | 10 #include "gles2_impl_export.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 int32 alpha_size; | 36 int32 alpha_size; |
37 int32 blue_size; | 37 int32 blue_size; |
38 int32 green_size; | 38 int32 green_size; |
39 int32 red_size; | 39 int32 red_size; |
40 int32 depth_size; | 40 int32 depth_size; |
41 int32 stencil_size; | 41 int32 stencil_size; |
42 int32 samples; | 42 int32 samples; |
43 int32 sample_buffers; | 43 int32 sample_buffers; |
44 int32 fail_if_major_perf_caveat; | 44 int32 fail_if_major_perf_caveat; |
45 int32 lose_context_when_out_of_memory; | |
46 }; | 45 }; |
47 | 46 |
48 class GLES2_IMPL_EXPORT GLInProcessContext { | 47 class GLES2_IMPL_EXPORT GLInProcessContext { |
49 public: | 48 public: |
50 virtual ~GLInProcessContext() {} | 49 virtual ~GLInProcessContext() {} |
51 | 50 |
52 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an | 51 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an |
53 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list | 52 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list |
54 // of attribute/value pairs. | 53 // of attribute/value pairs. |
55 static GLInProcessContext* CreateContext( | 54 static GLInProcessContext* CreateContext( |
(...skipping 23 matching lines...) Expand all Loading... |
79 | 78 |
80 #if defined(OS_ANDROID) | 79 #if defined(OS_ANDROID) |
81 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( | 80 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
82 uint32 stream_id) = 0; | 81 uint32 stream_id) = 0; |
83 #endif | 82 #endif |
84 }; | 83 }; |
85 | 84 |
86 } // namespace gpu | 85 } // namespace gpu |
87 | 86 |
88 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 87 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
OLD | NEW |