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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2599203003: gpu: Maintain the deferred log messages separately from the IPC messages. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 72c88b9b0510985c189c789ce41f2f2dad336412..51249fd9cc7becfe0b2db5c0912d111d2a4dfe4e 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -186,10 +186,6 @@ GpuChildThread::GpuChildThread(
}
GpuChildThread::~GpuChildThread() {
- while (!deferred_messages_.empty()) {
- delete deferred_messages_.front();
- deferred_messages_.pop();
- }
}
void GpuChildThread::Shutdown() {
@@ -319,7 +315,8 @@ void GpuChildThread::OnInitialize(const gpu::GpuPreferences& gpu_preferences) {
gpu_info_.initialization_time = base::Time::Now() - process_start_time_;
Send(new GpuHostMsg_Initialized(!dead_on_arrival_, gpu_info_));
while (!deferred_messages_.empty()) {
- Send(deferred_messages_.front());
+ const LogMessage& log = deferred_messages_.front();
+ Send(new GpuHostMsg_OnLogMessage(log.severity, log.header, log.message));
deferred_messages_.pop();
}
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698