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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 unsigned internalformat, 112 unsigned internalformat,
113 unsigned usage) override; 113 unsigned usage) override;
114 uint32 InsertSyncPoint() override; 114 uint32 InsertSyncPoint() override;
115 uint32 InsertFutureSyncPoint() override; 115 uint32 InsertFutureSyncPoint() override;
116 void RetireSyncPoint(uint32 sync_point) override; 116 void RetireSyncPoint(uint32 sync_point) override;
117 void SignalSyncPoint(uint32 sync_point, 117 void SignalSyncPoint(uint32 sync_point,
118 const base::Closure& callback) override; 118 const base::Closure& callback) override;
119 void SignalQuery(uint32 query, const base::Closure& callback) override; 119 void SignalQuery(uint32 query, const base::Closure& callback) override;
120 void SetSurfaceVisible(bool visible) override; 120 void SetSurfaceVisible(bool visible) override;
121 uint32 CreateStreamTexture(uint32 texture_id) override; 121 uint32 CreateStreamTexture(uint32 texture_id) override;
122 void SetLock(base::Lock*) override;
122 123
123 private: 124 private:
124 void PumpCommands(); 125 void PumpCommands();
125 bool GetBufferChanged(int32 transfer_buffer_id); 126 bool GetBufferChanged(int32 transfer_buffer_id);
126 void SetupBaseContext(); 127 void SetupBaseContext();
127 128
128 scoped_refptr<gles2::MailboxManager> mailbox_manager_; 129 scoped_refptr<gles2::MailboxManager> mailbox_manager_;
129 scoped_refptr<gfx::GLShareGroup> share_group_; 130 scoped_refptr<gfx::GLShareGroup> share_group_;
130 scoped_ptr<CommandBufferService> command_buffer_; 131 scoped_ptr<CommandBufferService> command_buffer_;
131 scoped_ptr<gles2::GLES2Decoder> decoder_; 132 scoped_ptr<gles2::GLES2Decoder> decoder_;
132 scoped_ptr<GpuScheduler> gpu_scheduler_; 133 scoped_ptr<GpuScheduler> gpu_scheduler_;
133 scoped_refptr<gfx::GLSurface> surface_; 134 scoped_refptr<gfx::GLSurface> surface_;
134 scoped_refptr<gfx::GLContext> context_; 135 scoped_refptr<gfx::GLContext> context_;
135 scoped_ptr<gles2::GLES2CmdHelper> gles2_helper_; 136 scoped_ptr<gles2::GLES2CmdHelper> gles2_helper_;
136 scoped_ptr<TransferBuffer> transfer_buffer_; 137 scoped_ptr<TransferBuffer> transfer_buffer_;
137 scoped_ptr<gles2::GLES2Implementation> gles2_implementation_; 138 scoped_ptr<gles2::GLES2Implementation> gles2_implementation_;
138 bool context_lost_allowed_; 139 bool context_lost_allowed_;
139 140
140 // Used on Android to virtualize GL for all contexts. 141 // Used on Android to virtualize GL for all contexts.
141 static int use_count_; 142 static int use_count_;
142 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 143 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
143 static scoped_refptr<gfx::GLSurface>* base_surface_; 144 static scoped_refptr<gfx::GLSurface>* base_surface_;
144 static scoped_refptr<gfx::GLContext>* base_context_; 145 static scoped_refptr<gfx::GLContext>* base_context_;
145 }; 146 };
146 147
147 } // namespace gpu 148 } // namespace gpu
148 149
149 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 150 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698