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; |