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

Side by Side Diff: gpu/command_buffer/service/service_utils.cc

Issue 2628963002: Revert of Enable creation of offscreen contexts which own their backing surface. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 #include "gpu/command_buffer/service/service_utils.h" 5 #include "gpu/command_buffer/service/service_utils.h"
6 6
7 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 7 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
8 #include "gpu/command_buffer/service/gpu_preferences.h" 8 #include "gpu/command_buffer/service/gpu_preferences.h"
9 9
10 namespace gpu { 10 namespace gpu {
11 namespace gles2 { 11 namespace gles2 {
12 12
13 gl::GLContextAttribs GenerateGLContextAttribs( 13 gl::GLContextAttribs GenerateGLContextAttribs(
14 const ContextCreationAttribHelper& attribs_helper, 14 const ContextCreationAttribHelper& attribs_helper,
15 const GpuPreferences& gpu_preferences) { 15 const GpuPreferences& gpu_preferences) {
16 gl::GLContextAttribs attribs; 16 gl::GLContextAttribs attribs;
17 attribs.gpu_preference = attribs_helper.gpu_preference; 17 attribs.gpu_preference = attribs_helper.gpu_preference;
18 if (gpu_preferences.use_passthrough_cmd_decoder) { 18 if (gpu_preferences.use_passthrough_cmd_decoder) {
19 attribs.bind_generates_resource = attribs_helper.bind_generates_resource; 19 attribs.bind_generates_resource = attribs_helper.bind_generates_resource;
20 attribs.webgl_compatibility_context = 20 attribs.webgl_compatibility_context =
21 IsWebGLContextType(attribs_helper.context_type); 21 IsWebGLContextType(attribs_helper.context_type);
22 } 22 }
23 if (attribs_helper.low_priority) {
24 attribs.low_priority = true;
25 }
26 return attribs; 23 return attribs;
27 } 24 }
28 25
29 } // namespace gles2 26 } // namespace gles2
30 } // namespace gpu 27 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/ipc/common/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698