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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 1409833004: Add DeviceDisplayInfo getter in WindowAndroid. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing bot, revert RWHVA changes, add NOTIMPLEMENTED to some functions in screen_android Created 4 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_data_manager_impl_private.h" 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 25 matching lines...) Expand all
36 #include "ui/gl/gl_implementation.h" 36 #include "ui/gl/gl_implementation.h"
37 #include "ui/gl/gl_switches.h" 37 #include "ui/gl/gl_switches.h"
38 #include "ui/gl/gpu_switching_manager.h" 38 #include "ui/gl/gpu_switching_manager.h"
39 39
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 #include <ApplicationServices/ApplicationServices.h> 41 #include <ApplicationServices/ApplicationServices.h>
42 #endif // OS_MACOSX 42 #endif // OS_MACOSX
43 #if defined(OS_WIN) 43 #if defined(OS_WIN)
44 #include "base/win/windows_version.h" 44 #include "base/win/windows_version.h"
45 #endif // OS_WIN 45 #endif // OS_WIN
46 #if defined(OS_ANDROID)
47 #include "ui/gfx/android/device_display_info.h"
48 #endif // OS_ANDROID
49 46
50 namespace content { 47 namespace content {
51 48
52 namespace { 49 namespace {
53 50
54 enum GpuFeatureStatus { 51 enum GpuFeatureStatus {
55 kGpuFeatureEnabled = 0, 52 kGpuFeatureEnabled = 0,
56 kGpuFeatureBlacklisted = 1, 53 kGpuFeatureBlacklisted = 1,
57 kGpuFeatureDisabled = 2, // disabled by user but not blacklisted 54 kGpuFeatureDisabled = 2, // disabled by user but not blacklisted
58 kGpuFeatureNumStatus 55 kGpuFeatureNumStatus
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; 1236 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure;
1240 #if defined(OS_WIN) 1237 #if defined(OS_WIN)
1241 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; 1238 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure;
1242 #endif 1239 #endif
1243 complete_gpu_info_already_requested_ = true; 1240 complete_gpu_info_already_requested_ = true;
1244 // Some observers might be waiting. 1241 // Some observers might be waiting.
1245 NotifyGpuInfoUpdate(); 1242 NotifyGpuInfoUpdate();
1246 } 1243 }
1247 1244
1248 } // namespace content 1245 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698