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

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: rebase after ClientNativePixmap is introduced Created 5 years, 4 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 switches::kDisableRemoteCoreAnimation, 119 switches::kDisableRemoteCoreAnimation,
120 switches::kDisableMacOverlays, 120 switches::kDisableMacOverlays,
121 switches::kEnableSandboxLogging, 121 switches::kEnableSandboxLogging,
122 #endif 122 #endif
123 #if defined(USE_AURA) 123 #if defined(USE_AURA)
124 switches::kUIPrioritizeInGpuProcess, 124 switches::kUIPrioritizeInGpuProcess,
125 #endif 125 #endif
126 #if defined(USE_OZONE) 126 #if defined(USE_OZONE)
127 switches::kOzonePlatform, 127 switches::kOzonePlatform,
128 switches::kOzoneUseSurfaceless, 128 switches::kOzoneUseSurfaceless,
129 switches::kOzoneUseIntelDrm,
129 #endif 130 #endif
130 #if defined(USE_X11) && !defined(OS_CHROMEOS) 131 #if defined(USE_X11) && !defined(OS_CHROMEOS)
131 switches::kX11Display, 132 switches::kX11Display,
132 #endif 133 #endif
133 }; 134 };
134 135
135 enum GPUProcessLifetimeEvent { 136 enum GPUProcessLifetimeEvent {
136 LAUNCHED, 137 LAUNCHED,
137 DIED_FIRST_TIME, 138 DIED_FIRST_TIME,
138 DIED_SECOND_TIME, 139 DIED_SECOND_TIME,
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1145 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1145 ClientIdToShaderCacheMap::iterator iter = 1146 ClientIdToShaderCacheMap::iterator iter =
1146 client_id_to_shader_cache_.find(client_id); 1147 client_id_to_shader_cache_.find(client_id);
1147 // If the cache doesn't exist then this is an off the record profile. 1148 // If the cache doesn't exist then this is an off the record profile.
1148 if (iter == client_id_to_shader_cache_.end()) 1149 if (iter == client_id_to_shader_cache_.end())
1149 return; 1150 return;
1150 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1151 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1151 } 1152 }
1152 1153
1153 } // namespace content 1154 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698