Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: gpu/command_buffer/client/gl_in_process_context.h

Issue 199443004: gpu: Raise GL_OUT_OF_MEMORY when BeginQueryEXT fails to allocate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: checkmem: benchmark Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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;
45 }; 46 };
46 47
47 class GLES2_IMPL_EXPORT GLInProcessContext { 48 class GLES2_IMPL_EXPORT GLInProcessContext {
48 public: 49 public:
49 virtual ~GLInProcessContext() {} 50 virtual ~GLInProcessContext() {}
50 51
51 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an 52 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an
52 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list 53 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list
53 // of attribute/value pairs. 54 // of attribute/value pairs.
54 static GLInProcessContext* CreateContext( 55 static GLInProcessContext* CreateContext(
(...skipping 23 matching lines...) Expand all
78 79
79 #if defined(OS_ANDROID) 80 #if defined(OS_ANDROID)
80 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( 81 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture(
81 uint32 stream_id) = 0; 82 uint32 stream_id) = 0;
82 #endif 83 #endif
83 }; 84 };
84 85
85 } // namespace gpu 86 } // namespace gpu
86 87
87 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 88 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/test/test_context_provider_factory.cc ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698