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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/compositor/gpu_process_transport_factory.h" 5 #include "content/browser/compositor/gpu_process_transport_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 attributes.sample_buffers = 0; 138 attributes.sample_buffers = 0;
139 attributes.bind_generates_resource = false; 139 attributes.bind_generates_resource = false;
140 attributes.lose_context_when_out_of_memory = true; 140 attributes.lose_context_when_out_of_memory = true;
141 attributes.buffer_preserved = false; 141 attributes.buffer_preserved = false;
142 142
143 constexpr bool automatic_flushes = false; 143 constexpr bool automatic_flushes = false;
144 144
145 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon"); 145 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon");
146 return make_scoped_refptr(new content::ContextProviderCommandBuffer( 146 return make_scoped_refptr(new content::ContextProviderCommandBuffer(
147 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT, 147 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
148 gpu::GpuStreamPriority::NORMAL, surface_handle, url, automatic_flushes, 148 gpu::GpuStreamPriority::REAL_TIME, surface_handle, url, automatic_flushes,
149 support_locking, gpu::SharedMemoryLimits(), attributes, 149 support_locking, gpu::SharedMemoryLimits(), attributes,
150 shared_context_provider, type)); 150 shared_context_provider, type));
151 } 151 }
152 152
153 #if defined(OS_MACOSX) 153 #if defined(OS_MACOSX)
154 bool IsCALayersDisabledFromCommandLine() { 154 bool IsCALayersDisabledFromCommandLine() {
155 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 155 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
156 return command_line->HasSwitch(switches::kDisableMacOverlays); 156 return command_line->HasSwitch(switches::kDisableMacOverlays);
157 } 157 }
158 #endif 158 #endif
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 shared_vulkan_context_provider_ = 881 shared_vulkan_context_provider_ =
882 cc::VulkanInProcessContextProvider::Create(); 882 cc::VulkanInProcessContextProvider::Create();
883 } 883 }
884 884
885 shared_vulkan_context_provider_initialized_ = true; 885 shared_vulkan_context_provider_initialized_ = true;
886 } 886 }
887 return shared_vulkan_context_provider_; 887 return shared_vulkan_context_provider_;
888 } 888 }
889 889
890 } // namespace content 890 } // namespace content
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | content/browser/renderer_host/context_provider_factory_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698