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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.h

Issue 221783002: Revert of gpu: Raise GL_OUT_OF_MEMORY when BeginQueryEXT fails to allocate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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;
58 // Whether or not it's ok to lose the context. 56 // Whether or not it's ok to lose the context.
59 bool context_lost_allowed; 57 bool context_lost_allowed;
60 // Image manager to be used. 58 // Image manager to be used.
61 gles2::ImageManager* image_manager; 59 gles2::ImageManager* image_manager;
62 // GpuMemoryBuffer factory to be used. 60 // GpuMemoryBuffer factory to be used.
63 GpuMemoryBufferFactory* gpu_memory_buffer_factory; 61 GpuMemoryBufferFactory* gpu_memory_buffer_factory;
64 }; 62 };
65 GLManager(); 63 GLManager();
66 ~GLManager(); 64 ~GLManager();
67 65
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Used on Android to virtualize GL for all contexts. 113 // Used on Android to virtualize GL for all contexts.
116 static int use_count_; 114 static int use_count_;
117 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 115 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
118 static scoped_refptr<gfx::GLSurface>* base_surface_; 116 static scoped_refptr<gfx::GLSurface>* base_surface_;
119 static scoped_refptr<gfx::GLContext>* base_context_; 117 static scoped_refptr<gfx::GLContext>* base_context_;
120 }; 118 };
121 119
122 } // namespace gpu 120 } // namespace gpu
123 121
124 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 122 #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