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

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

Issue 2907753002: Limit D3D V-sync experiment to Win 8.1+ (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | gpu/ipc/service/image_transport_surface_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 namespace { 110 namespace {
111 111
112 const int kNumRetriesBeforeSoftwareFallback = 4; 112 const int kNumRetriesBeforeSoftwareFallback = 4;
113 // The client_id used here should not conflict with the client_id generated 113 // The client_id used here should not conflict with the client_id generated
114 // from RenderWidgetHostImpl. 114 // from RenderWidgetHostImpl.
115 constexpr uint32_t kDefaultClientId = 0u; 115 constexpr uint32_t kDefaultClientId = 0u;
116 116
117 bool IsGpuVSyncSignalSupported() { 117 bool IsGpuVSyncSignalSupported() {
118 #if defined(OS_WIN) 118 #if defined(OS_WIN)
119 // TODO(stanisc): http://crbug.com/467617 Limit to Windows 8+ for now because 119 // TODO(stanisc): http://crbug.com/467617 Limit to Windows 8.1+ for now
120 // of locking issue caused by waiting for VSync on Win7. 120 // because of locking issue caused by waiting for VSync on Win7 and Win 8.0.
121 return base::win::GetVersion() >= base::win::VERSION_WIN8 && 121 return base::win::GetVersion() >= base::win::VERSION_WIN8_1 &&
122 base::FeatureList::IsEnabled(features::kD3DVsync); 122 base::FeatureList::IsEnabled(features::kD3DVsync);
123 #else 123 #else
124 return false; 124 return false;
125 #endif // defined(OS_WIN) 125 #endif // defined(OS_WIN)
126 } 126 }
127 127
128 scoped_refptr<ui::ContextProviderCommandBuffer> CreateContextCommon( 128 scoped_refptr<ui::ContextProviderCommandBuffer> CreateContextCommon(
129 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host, 129 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
130 gpu::SurfaceHandle surface_handle, 130 gpu::SurfaceHandle surface_handle,
131 bool need_alpha_channel, 131 bool need_alpha_channel,
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 shared_vulkan_context_provider_ = 944 shared_vulkan_context_provider_ =
945 cc::VulkanInProcessContextProvider::Create(); 945 cc::VulkanInProcessContextProvider::Create();
946 } 946 }
947 947
948 shared_vulkan_context_provider_initialized_ = true; 948 shared_vulkan_context_provider_initialized_ = true;
949 } 949 }
950 return shared_vulkan_context_provider_; 950 return shared_vulkan_context_provider_;
951 } 951 }
952 952
953 } // namespace content 953 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | gpu/ipc/service/image_transport_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698