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

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

Issue 11568029: Add a command to lose the context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add docs, lose parent and children, fix typo Created 8 years 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 "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 30 matching lines...) Expand all
41 // The size of the backbuffer. 41 // The size of the backbuffer.
42 gfx::Size size; 42 gfx::Size size;
43 // If not null will share resources with this context. 43 // If not null will share resources with this context.
44 GLManager* share_group_manager; 44 GLManager* share_group_manager;
45 // If not null will share a mailbox manager with this context. 45 // If not null will share a mailbox manager with this context.
46 GLManager* share_mailbox_manager; 46 GLManager* share_mailbox_manager;
47 // If not null will create a virtual manager based on this context. 47 // If not null will create a virtual manager based on this context.
48 GLManager* virtual_manager; 48 GLManager* virtual_manager;
49 // Whether or not glBindXXX generates a resource. 49 // Whether or not glBindXXX generates a resource.
50 bool bind_generates_resource; 50 bool bind_generates_resource;
51 // Whether or not it's ok to lose the context.
52 bool context_lost_allowed;
51 }; 53 };
52 GLManager(); 54 GLManager();
53 ~GLManager(); 55 ~GLManager();
54 56
55 void Initialize(const Options& options); 57 void Initialize(const Options& options);
56 void Destroy(); 58 void Destroy();
57 59
58 void MakeCurrent(); 60 void MakeCurrent();
59 61
60 gles2::MailboxManager* mailbox_manager() const { 62 gles2::MailboxManager* mailbox_manager() const {
(...skipping 19 matching lines...) Expand all
80 scoped_refptr<gles2::MailboxManager> mailbox_manager_; 82 scoped_refptr<gles2::MailboxManager> mailbox_manager_;
81 scoped_refptr<gfx::GLShareGroup> share_group_; 83 scoped_refptr<gfx::GLShareGroup> share_group_;
82 scoped_ptr<CommandBufferService> command_buffer_; 84 scoped_ptr<CommandBufferService> command_buffer_;
83 scoped_ptr<gles2::GLES2Decoder> decoder_; 85 scoped_ptr<gles2::GLES2Decoder> decoder_;
84 scoped_ptr<GpuScheduler> gpu_scheduler_; 86 scoped_ptr<GpuScheduler> gpu_scheduler_;
85 scoped_refptr<gfx::GLSurface> surface_; 87 scoped_refptr<gfx::GLSurface> surface_;
86 scoped_refptr<gfx::GLContext> context_; 88 scoped_refptr<gfx::GLContext> context_;
87 scoped_ptr<gles2::GLES2CmdHelper> gles2_helper_; 89 scoped_ptr<gles2::GLES2CmdHelper> gles2_helper_;
88 scoped_ptr<TransferBuffer> transfer_buffer_; 90 scoped_ptr<TransferBuffer> transfer_buffer_;
89 scoped_ptr<gles2::GLES2Implementation> gles2_implementation_; 91 scoped_ptr<gles2::GLES2Implementation> gles2_implementation_;
92 bool context_lost_allowed_;
90 }; 93 };
91 94
92 } // namespace gpu 95 } // namespace gpu
93 96
94 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 97 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_lose_context_chromium_unittests.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698