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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 8917027: Add IPC to allow gpu process to send message for console back to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mock fix Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Identifies a particular renderer belonging to the same renderer process. 80 // Identifies a particular renderer belonging to the same renderer process.
81 int32 render_view_id() const { return render_view_id_; } 81 int32 render_view_id() const { return render_view_id_; }
82 82
83 // Identifies the various GpuCommandBufferStubs in the GPU process belonging 83 // Identifies the various GpuCommandBufferStubs in the GPU process belonging
84 // to the same renderer process. 84 // to the same renderer process.
85 int32 route_id() const { return route_id_; } 85 int32 route_id() const { return route_id_; }
86 86
87 gfx::GpuPreference gpu_preference() { return gpu_preference_; } 87 gfx::GpuPreference gpu_preference() { return gpu_preference_; }
88 88
89 // Sends a message to the console.
90 void SendConsoleMessage(int32 id, const std::string& message);
91
89 private: 92 private:
90 void Destroy(); 93 void Destroy();
91 94
92 // Cleans up and sends reply if OnInitialize failed. 95 // Cleans up and sends reply if OnInitialize failed.
93 void OnInitializeFailed(IPC::Message* reply_message); 96 void OnInitializeFailed(IPC::Message* reply_message);
94 97
95 // Message handlers: 98 // Message handlers:
96 void OnInitialize(IPC::Message* reply_message); 99 void OnInitialize(IPC::Message* reply_message);
97 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); 100 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
98 void OnSetParent(int32 parent_route_id, 101 void OnSetParent(int32 parent_route_id,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Zero or more video decoders owned by this stub, keyed by their 167 // Zero or more video decoders owned by this stub, keyed by their
165 // decoder_route_id. 168 // decoder_route_id.
166 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
167 170
168 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
169 }; 172 };
170 173
171 #endif // defined(ENABLE_GPU) 174 #endif // defined(ENABLE_GPU)
172 175
173 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 176 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698