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

Side by Side Diff: content/public/browser/gpu_data_manager.h

Issue 12475002: Delete memory manager dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve against CrOS changes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/command_buffer/service/gpu_switches.h » ('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 (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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Returns true if the software rendering should currently be used. 66 // Returns true if the software rendering should currently be used.
67 virtual bool ShouldUseSoftwareRendering() const = 0; 67 virtual bool ShouldUseSoftwareRendering() const = 0;
68 68
69 // Register a path to the SwiftShader software renderer. 69 // Register a path to the SwiftShader software renderer.
70 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0; 70 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0;
71 71
72 // Registers/unregister |observer|. 72 // Registers/unregister |observer|.
73 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; 73 virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
74 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; 74 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;
75 75
76 // Notifies the gpu process about the number of browser windows, so
77 // they can be used to determine managed memory allocation.
78 virtual void SetWindowCount(uint32 count) = 0;
79 virtual uint32 GetWindowCount() const = 0;
80
81 // Allows a given domain previously blocked from accessing 3D APIs 76 // Allows a given domain previously blocked from accessing 3D APIs
82 // to access them again. 77 // to access them again.
83 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; 78 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0;
84 79
85 // Disable the gpu process watchdog thread. 80 // Disable the gpu process watchdog thread.
86 virtual void DisableGpuWatchdog() = 0; 81 virtual void DisableGpuWatchdog() = 0;
87 82
88 // Set GL strings. This triggers a re-calculation of GPU blacklist 83 // Set GL strings. This triggers a re-calculation of GPU blacklist
89 // decision. 84 // decision.
90 virtual void SetGLStrings(const std::string& gl_vendor, 85 virtual void SetGLStrings(const std::string& gl_vendor,
91 const std::string& gl_renderer, 86 const std::string& gl_renderer,
92 const std::string& gl_version) = 0; 87 const std::string& gl_version) = 0;
93 88
94 // Obtain collected GL strings. 89 // Obtain collected GL strings.
95 virtual void GetGLStrings(std::string* gl_vendor, 90 virtual void GetGLStrings(std::string* gl_vendor,
96 std::string* gl_renderer, 91 std::string* gl_renderer,
97 std::string* gl_version) = 0; 92 std::string* gl_version) = 0;
98 93
99 protected: 94 protected:
100 virtual ~GpuDataManager() {} 95 virtual ~GpuDataManager() {}
101 }; 96 };
102 97
103 }; // namespace content 98 }; // namespace content
104 99
105 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 100 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/command_buffer/service/gpu_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698