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

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

Issue 1071273002: NotForReview: Implement zero/one-copy texture for ozone freon using Intel DRM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: depends on https://codereview.chromium.org/1134993003/ Created 5 years, 5 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 "base/base64.h" 7 #include "base/base64.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 switches::kDisableNSCGLSurfaceApi, 117 switches::kDisableNSCGLSurfaceApi,
118 switches::kForceNSCGLSurfaceApi, 118 switches::kForceNSCGLSurfaceApi,
119 switches::kEnableSandboxLogging, 119 switches::kEnableSandboxLogging,
120 #endif 120 #endif
121 #if defined(USE_AURA) 121 #if defined(USE_AURA)
122 switches::kUIPrioritizeInGpuProcess, 122 switches::kUIPrioritizeInGpuProcess,
123 #endif 123 #endif
124 #if defined(USE_OZONE) 124 #if defined(USE_OZONE)
125 switches::kOzonePlatform, 125 switches::kOzonePlatform,
126 switches::kOzoneUseSurfaceless, 126 switches::kOzoneUseSurfaceless,
127 switches::kOzoneUseIntelDrm,
127 #endif 128 #endif
128 #if defined(USE_X11) && !defined(OS_CHROMEOS) 129 #if defined(USE_X11) && !defined(OS_CHROMEOS)
129 switches::kX11Display, 130 switches::kX11Display,
130 #endif 131 #endif
131 }; 132 };
132 133
133 enum GPUProcessLifetimeEvent { 134 enum GPUProcessLifetimeEvent {
134 LAUNCHED, 135 LAUNCHED,
135 DIED_FIRST_TIME, 136 DIED_FIRST_TIME,
136 DIED_SECOND_TIME, 137 DIED_SECOND_TIME,
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1137 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1137 ClientIdToShaderCacheMap::iterator iter = 1138 ClientIdToShaderCacheMap::iterator iter =
1138 client_id_to_shader_cache_.find(client_id); 1139 client_id_to_shader_cache_.find(client_id);
1139 // If the cache doesn't exist then this is an off the record profile. 1140 // If the cache doesn't exist then this is an off the record profile.
1140 if (iter == client_id_to_shader_cache_.end()) 1141 if (iter == client_id_to_shader_cache_.end())
1141 return; 1142 return;
1142 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1143 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1143 } 1144 }
1144 1145
1145 } // namespace content 1146 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698