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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 1548893004: Allow WebGL readback for Mesa llvmpipe driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only allow WebGL feature Created 4 years, 8 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) 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 #include "content/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 switches::kEnableSandboxLogging, 133 switches::kEnableSandboxLogging,
134 switches::kShowMacOverlayBorders, 134 switches::kShowMacOverlayBorders,
135 #endif 135 #endif
136 #if defined(USE_OZONE) 136 #if defined(USE_OZONE)
137 switches::kOzonePlatform, 137 switches::kOzonePlatform,
138 #endif 138 #endif
139 #if defined(USE_X11) && !defined(OS_CHROMEOS) 139 #if defined(USE_X11) && !defined(OS_CHROMEOS)
140 switches::kWindowDepth, 140 switches::kWindowDepth,
141 switches::kX11Display, 141 switches::kX11Display,
142 #endif 142 #endif
143 switches::kGpuTestingGLVendor,
144 switches::kGpuTestingGLRenderer,
145 switches::kGpuTestingGLVersion,
143 }; 146 };
144 147
145 enum GPUProcessLifetimeEvent { 148 enum GPUProcessLifetimeEvent {
146 LAUNCHED, 149 LAUNCHED,
147 DIED_FIRST_TIME, 150 DIED_FIRST_TIME,
148 DIED_SECOND_TIME, 151 DIED_SECOND_TIME,
149 DIED_THIRD_TIME, 152 DIED_THIRD_TIME,
150 DIED_FOURTH_TIME, 153 DIED_FOURTH_TIME,
151 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 154 GPU_PROCESS_LIFETIME_EVENT_MAX = 100
152 }; 155 };
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1171 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1169 ClientIdToShaderCacheMap::iterator iter = 1172 ClientIdToShaderCacheMap::iterator iter =
1170 client_id_to_shader_cache_.find(client_id); 1173 client_id_to_shader_cache_.find(client_id);
1171 // If the cache doesn't exist then this is an off the record profile. 1174 // If the cache doesn't exist then this is an off the record profile.
1172 if (iter == client_id_to_shader_cache_.end()) 1175 if (iter == client_id_to_shader_cache_.end())
1173 return; 1176 return;
1174 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1177 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1175 } 1178 }
1176 1179
1177 } // namespace content 1180 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | gpu/config/software_rendering_list_json.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698