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

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

Issue 2015693002: gpu: Fix a bug in the new ReturnFrontBuffer() path for pepper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/gles2_cmd_decoder.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 GLManager* virtual_manager; 68 GLManager* virtual_manager;
69 // Whether or not glBindXXX generates a resource. 69 // Whether or not glBindXXX generates a resource.
70 bool bind_generates_resource; 70 bool bind_generates_resource;
71 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs. 71 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs.
72 bool lose_context_when_out_of_memory; 72 bool lose_context_when_out_of_memory;
73 // Whether or not it's ok to lose the context. 73 // Whether or not it's ok to lose the context.
74 bool context_lost_allowed; 74 bool context_lost_allowed;
75 gles2::ContextType context_type; 75 gles2::ContextType context_type;
76 // Force shader name hashing for all context types. 76 // Force shader name hashing for all context types.
77 bool force_shader_name_hashing; 77 bool force_shader_name_hashing;
78 // Whether the buffer is multisampled.
79 bool multisampled;
78 }; 80 };
79 GLManager(); 81 GLManager();
80 ~GLManager() override; 82 ~GLManager() override;
81 83
82 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( 84 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
83 const gfx::Size& size, 85 const gfx::Size& size,
84 gfx::BufferFormat format); 86 gfx::BufferFormat format);
85 87
86 void Initialize(const Options& options); 88 void Initialize(const Options& options);
87 void InitializeWithCommandLine(const Options& options, 89 void InitializeWithCommandLine(const Options& options,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Used on Android to virtualize GL for all contexts. 187 // Used on Android to virtualize GL for all contexts.
186 static int use_count_; 188 static int use_count_;
187 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 189 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
188 static scoped_refptr<gfx::GLSurface>* base_surface_; 190 static scoped_refptr<gfx::GLSurface>* base_surface_;
189 static scoped_refptr<gfx::GLContext>* base_context_; 191 static scoped_refptr<gfx::GLContext>* base_context_;
190 }; 192 };
191 193
192 } // namespace gpu 194 } // namespace gpu
193 195
194 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 196 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698