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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 338193003: ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void Init(const base::Time& process_start_time); 52 void Init(const base::Time& process_start_time);
53 void StopWatchdog(); 53 void StopWatchdog();
54 54
55 // ChildThread overrides. 55 // ChildThread overrides.
56 virtual bool Send(IPC::Message* msg) OVERRIDE; 56 virtual bool Send(IPC::Message* msg) OVERRIDE;
57 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 57 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
58 58
59 private: 59 private:
60 // Message handlers. 60 // Message handlers.
61 void OnInitialize(); 61 void OnInitialize();
62 void OnInitializePlatformSupport(int32 host_route_id);
62 void OnCollectGraphicsInfo(); 63 void OnCollectGraphicsInfo();
63 void OnGetVideoMemoryUsageStats(); 64 void OnGetVideoMemoryUsageStats();
64 void OnSetVideoMemoryWindowCount(uint32 window_count); 65 void OnSetVideoMemoryWindowCount(uint32 window_count);
65 66
66 void OnClean(); 67 void OnClean();
67 void OnCrash(); 68 void OnCrash();
68 void OnHang(); 69 void OnHang();
69 void OnDisableWatchdog(); 70 void OnDisableWatchdog();
70 71
71 #if defined(USE_TCMALLOC) 72 #if defined(USE_TCMALLOC)
(...skipping 21 matching lines...) Expand all
93 94
94 // Whether the GPU thread is running in the browser process. 95 // Whether the GPU thread is running in the browser process.
95 bool in_browser_process_; 96 bool in_browser_process_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 98 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
98 }; 99 };
99 100
100 } // namespace content 101 } // namespace content
101 102
102 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 103 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698