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/public/browser/gpu_data_manager.h

Issue 1117813002: Add GL strings to CastSysInfo interface and use to configure GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // decision. 97 // decision.
98 virtual void SetGLStrings(const std::string& gl_vendor, 98 virtual void SetGLStrings(const std::string& gl_vendor,
99 const std::string& gl_renderer, 99 const std::string& gl_renderer,
100 const std::string& gl_version) = 0; 100 const std::string& gl_version) = 0;
101 101
102 // Obtain collected GL strings. 102 // Obtain collected GL strings.
103 virtual void GetGLStrings(std::string* gl_vendor, 103 virtual void GetGLStrings(std::string* gl_vendor,
104 std::string* gl_renderer, 104 std::string* gl_renderer,
105 std::string* gl_version) = 0; 105 std::string* gl_version) = 0;
106 106
107 // Sets GPU device info. Allows content embedder to supply this info on
108 // platforms where CollectBasicGraphicsInfo is unable to determine
109 // vendor id or device id.
110 virtual void SetGpuDeviceName(const std::string& vendor,
111 const std::string& device) = 0;
112
107 // Turn off all hardware acceleration. 113 // Turn off all hardware acceleration.
108 virtual void DisableHardwareAcceleration() = 0; 114 virtual void DisableHardwareAcceleration() = 0;
109 115
110 // Whether the browser compositor can be used. 116 // Whether the browser compositor can be used.
111 virtual bool CanUseGpuBrowserCompositor() const = 0; 117 virtual bool CanUseGpuBrowserCompositor() const = 0;
112 118
113 protected: 119 protected:
114 virtual ~GpuDataManager() {} 120 virtual ~GpuDataManager() {}
115 }; 121 };
116 122
117 }; // namespace content 123 }; // namespace content
118 124
119 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 125 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698