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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1368583006: Don't use view contexts in the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index aa5828c3239a257791a411ec4a103d5a64ee23c5..4664125f12169a09b28aab52b3034c27af8630ef 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1559,29 +1559,15 @@ RenderThreadImpl::GetIOThreadTaskRunner() {
scoped_ptr<base::SharedMemory> RenderThreadImpl::AllocateSharedMemory(
size_t size) {
- return scoped_ptr<base::SharedMemory>(
- HostAllocateSharedMemoryBuffer(size));
+ return HostAllocateSharedMemoryBuffer(size);
}
CreateCommandBufferResult RenderThreadImpl::CreateViewCommandBuffer(
int32 surface_id,
const GPUCreateCommandBufferConfig& init_params,
int32 route_id) {
- TRACE_EVENT1("gpu",
- "RenderThreadImpl::CreateViewCommandBuffer",
- "surface_id",
- surface_id);
-
- CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED;
- IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer(
- init_params,
- route_id,
- &result);
-
- // Allow calling this from the compositor thread.
- thread_safe_sender()->Send(message);
-
- return result;
+ NOTREACHED();
+ return CREATE_COMMAND_BUFFER_FAILED;
}
void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() {
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698