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

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

Issue 732423002: Update from chromium https://crrev.com/304586 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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"
11 #include "gpu/command_buffer/client/gpu_control.h" 11 #include "gpu/command_buffer/client/gpu_control.h"
12 #include "gpu/command_buffer/service/feature_info.h" 12 #include "gpu/command_buffer/service/feature_info.h"
13 #include "ui/gfx/gpu_memory_buffer.h" 13 #include "ui/gfx/gpu_memory_buffer.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 15
16 namespace base {
17 class CommandLine;
18 }
19
16 namespace gfx { 20 namespace gfx {
17 21
18 class GLContext; 22 class GLContext;
19 class GLShareGroup; 23 class GLShareGroup;
20 class GLSurface; 24 class GLSurface;
21 25
22 } 26 }
23 27
24 namespace gpu { 28 namespace gpu {
25 29
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool context_lost_allowed; 63 bool context_lost_allowed;
60 }; 64 };
61 GLManager(); 65 GLManager();
62 ~GLManager() override; 66 ~GLManager() override;
63 67
64 static scoped_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( 68 static scoped_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
65 const gfx::Size& size, 69 const gfx::Size& size,
66 gfx::GpuMemoryBuffer::Format format); 70 gfx::GpuMemoryBuffer::Format format);
67 71
68 void Initialize(const Options& options); 72 void Initialize(const Options& options);
73 void InitializeWithCommandLine(const Options& options,
74 base::CommandLine* command_line);
69 void Destroy(); 75 void Destroy();
70 76
71 void MakeCurrent(); 77 void MakeCurrent();
72 78
73 void SetSurface(gfx::GLSurface* surface); 79 void SetSurface(gfx::GLSurface* surface);
74 80
75 gles2::GLES2Decoder* decoder() const { 81 gles2::GLES2Decoder* decoder() const {
76 return decoder_.get(); 82 return decoder_.get();
77 } 83 }
78 84
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Used on Android to virtualize GL for all contexts. 140 // Used on Android to virtualize GL for all contexts.
135 static int use_count_; 141 static int use_count_;
136 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 142 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
137 static scoped_refptr<gfx::GLSurface>* base_surface_; 143 static scoped_refptr<gfx::GLSurface>* base_surface_;
138 static scoped_refptr<gfx::GLContext>* base_context_; 144 static scoped_refptr<gfx::GLContext>* base_context_;
139 }; 145 };
140 146
141 } // namespace gpu 147 } // namespace gpu
142 148
143 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 149 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698