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

Side by Side Diff: content/browser/renderer_host/context_provider_factory_impl_android.cc

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/browser/renderer_host/context_provider_factory_impl_android.h" 5 #include "content/browser/renderer_host/context_provider_factory_impl_android.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 command_buffer_metrics::ContextType context_type, 148 command_buffer_metrics::ContextType context_type,
149 gpu::SurfaceHandle surface_handle, 149 gpu::SurfaceHandle surface_handle,
150 gpu::SharedMemoryLimits shared_memory_limits, 150 gpu::SharedMemoryLimits shared_memory_limits,
151 gpu::gles2::ContextCreationAttribHelper attributes, 151 gpu::gles2::ContextCreationAttribHelper attributes,
152 bool support_locking, 152 bool support_locking,
153 bool automatic_flushes, 153 bool automatic_flushes,
154 cc::ContextProvider* shared_context_provider, 154 cc::ContextProvider* shared_context_provider,
155 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) { 155 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) {
156 return make_scoped_refptr(new ContextProviderCommandBuffer( 156 return make_scoped_refptr(new ContextProviderCommandBuffer(
157 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT, 157 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
158 gpu::GpuStreamPriority::NORMAL, surface_handle, 158 gpu::GpuStreamPriority::REAL_TIME, surface_handle,
159 GURL(std::string("chrome://gpu/ContextProviderFactoryImpl::") + 159 GURL(std::string("chrome://gpu/ContextProviderFactoryImpl::") +
160 std::string("CompositorContextProvider")), 160 std::string("CompositorContextProvider")),
161 automatic_flushes, support_locking, shared_memory_limits, attributes, 161 automatic_flushes, support_locking, shared_memory_limits, attributes,
162 static_cast<ContextProviderCommandBuffer*>(shared_context_provider), 162 static_cast<ContextProviderCommandBuffer*>(shared_context_provider),
163 context_type)); 163 context_type));
164 } 164 }
165 165
166 void ContextProviderFactoryImpl::HandlePendingRequests( 166 void ContextProviderFactoryImpl::HandlePendingRequests(
167 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host, 167 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
168 GpuChannelHostResult result) { 168 GpuChannelHostResult result) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 nullptr, 232 nullptr,
233 GpuChannelHostResult::FAILURE_GPU_PROCESS_INITIALIZATION_FAILED); 233 GpuChannelHostResult::FAILURE_GPU_PROCESS_INITIALIZATION_FAILED);
234 } 234 }
235 } 235 }
236 236
237 void ContextProviderFactoryImpl::OnGpuChannelTimeout() { 237 void ContextProviderFactoryImpl::OnGpuChannelTimeout() {
238 LOG(FATAL) << "Timed out waiting for GPU channel."; 238 LOG(FATAL) << "Timed out waiting for GPU channel.";
239 } 239 }
240 240
241 } // namespace content 241 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/common/gpu_host_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698