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

Unified Diff: content/gpu/gpu_child_thread.h

Issue 1859403002: Avoid GpuPreferences exposed in content public gpu interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/gpu/gpu_child_thread.h
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h
index e5f518972faf543c123e61f551858ef3594f9e97..67ab18bd60823439dc5d9de941a5490dc2d2c7a2 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -56,6 +56,8 @@ class GpuChildThread : public ChildThreadImpl,
public:
typedef std::queue<IPC::Message*> DeferredMessages;
+ static GpuChildThread* current();
Owen Lin 2016/04/08 01:31:57 please document it.
kcwu 2016/04/08 03:21:36 Done.
+
GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread,
bool dead_on_arrival,
const gpu::GPUInfo& gpu_info,
@@ -75,6 +77,8 @@ class GpuChildThread : public ChildThreadImpl,
void Init(const base::Time& process_start_time);
void StopWatchdog();
+ gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; }
+
private:
// ChildThread overrides.
bool Send(IPC::Message* msg) override;

Powered by Google App Engine
This is Rietveld 408576698