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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.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_TESTS_GL_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "gpu/command_buffer/service/feature_info.h" 10 #include "gpu/command_buffer/service/feature_info.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // The size of the backbuffer. 46 // The size of the backbuffer.
47 gfx::Size size; 47 gfx::Size size;
48 // If not null will share resources with this context. 48 // If not null will share resources with this context.
49 GLManager* share_group_manager; 49 GLManager* share_group_manager;
50 // If not null will share a mailbox manager with this context. 50 // If not null will share a mailbox manager with this context.
51 GLManager* share_mailbox_manager; 51 GLManager* share_mailbox_manager;
52 // If not null will create a virtual manager based on this context. 52 // If not null will create a virtual manager based on this context.
53 GLManager* virtual_manager; 53 GLManager* virtual_manager;
54 // Whether or not glBindXXX generates a resource. 54 // Whether or not glBindXXX generates a resource.
55 bool bind_generates_resource; 55 bool bind_generates_resource;
56 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs.
57 bool lose_context_when_out_of_memory;
56 // Whether or not it's ok to lose the context. 58 // Whether or not it's ok to lose the context.
57 bool context_lost_allowed; 59 bool context_lost_allowed;
58 // Image manager to be used. 60 // Image manager to be used.
59 gles2::ImageManager* image_manager; 61 gles2::ImageManager* image_manager;
60 // GpuMemoryBuffer factory to be used. 62 // GpuMemoryBuffer factory to be used.
61 GpuMemoryBufferFactory* gpu_memory_buffer_factory; 63 GpuMemoryBufferFactory* gpu_memory_buffer_factory;
62 }; 64 };
63 GLManager(); 65 GLManager();
64 ~GLManager(); 66 ~GLManager();
65 67
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Used on Android to virtualize GL for all contexts. 115 // Used on Android to virtualize GL for all contexts.
114 static int use_count_; 116 static int use_count_;
115 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 117 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
116 static scoped_refptr<gfx::GLSurface>* base_surface_; 118 static scoped_refptr<gfx::GLSurface>* base_surface_;
117 static scoped_refptr<gfx::GLContext>* base_context_; 119 static scoped_refptr<gfx::GLContext>* base_context_;
118 }; 120 };
119 121
120 } // namespace gpu 122 } // namespace gpu
121 123
122 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 124 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698