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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 attributes.sample_buffers = 0; 126 attributes.sample_buffers = 0;
127 attributes.bind_generates_resource = false; 127 attributes.bind_generates_resource = false;
128 attributes.lose_context_when_out_of_memory = true; 128 attributes.lose_context_when_out_of_memory = true;
129 129
130 constexpr bool automatic_flushes = false; 130 constexpr bool automatic_flushes = false;
131 131
132 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon"); 132 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon");
133 return make_scoped_refptr(new content::ContextProviderCommandBuffer( 133 return make_scoped_refptr(new content::ContextProviderCommandBuffer(
134 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT, 134 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
135 gpu::GpuStreamPriority::NORMAL, surface_handle, url, 135 gpu::GpuStreamPriority::NORMAL, surface_handle, url,
136 gfx::PreferIntegratedGpu, automatic_flushes, support_locking, 136 gl::PreferIntegratedGpu, automatic_flushes, support_locking,
137 gpu::SharedMemoryLimits(), attributes, shared_context_provider, type)); 137 gpu::SharedMemoryLimits(), attributes, shared_context_provider, type));
138 } 138 }
139 139
140 #if defined(OS_MACOSX) 140 #if defined(OS_MACOSX)
141 bool IsCALayersDisabledFromCommandLine() { 141 bool IsCALayersDisabledFromCommandLine() {
142 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 142 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
143 return command_line->HasSwitch(switches::kDisableMacOverlays); 143 return command_line->HasSwitch(switches::kDisableMacOverlays);
144 } 144 }
145 #endif 145 #endif
146 146
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 shared_vulkan_context_provider_ = 781 shared_vulkan_context_provider_ =
782 cc::VulkanInProcessContextProvider::Create(); 782 cc::VulkanInProcessContextProvider::Create();
783 } 783 }
784 784
785 shared_vulkan_context_provider_initialized_ = true; 785 shared_vulkan_context_provider_initialized_ = true;
786 } 786 }
787 return shared_vulkan_context_provider_; 787 return shared_vulkan_context_provider_;
788 } 788 }
789 789
790 } // namespace content 790 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_video_view.cc ('k') | content/browser/compositor/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698