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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 init_params, 1230 init_params,
1231 route_id, 1231 route_id,
1232 &result); 1232 &result);
1233 1233
1234 // Allow calling this from the compositor thread. 1234 // Allow calling this from the compositor thread.
1235 thread_safe_sender()->Send(message); 1235 thread_safe_sender()->Send(message);
1236 1236
1237 return result; 1237 return result;
1238 } 1238 }
1239 1239
1240 void RenderThreadImpl::CreateImage(
1241 gfx::PluginWindowHandle window,
1242 int32 image_id,
1243 const CreateImageCallback& callback) {
1244 NOTREACHED();
1245 }
1246
1247 void RenderThreadImpl::DeleteImage(int32 image_id, int32 sync_point) {
1248 NOTREACHED();
1249 }
1250
1251 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer( 1240 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer(
1252 size_t width, 1241 size_t width,
1253 size_t height, 1242 size_t height,
1254 unsigned internalformat, 1243 unsigned internalformat,
1255 unsigned usage) { 1244 unsigned usage) {
1256 DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread()); 1245 DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread());
1257 1246
1258 if (!GpuMemoryBufferImpl::IsFormatValid(internalformat)) 1247 if (!GpuMemoryBufferImpl::IsFormatValid(internalformat))
1259 return scoped_ptr<gfx::GpuMemoryBuffer>(); 1248 return scoped_ptr<gfx::GpuMemoryBuffer>();
1260 1249
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 hidden_widget_count_--; 1597 hidden_widget_count_--;
1609 1598
1610 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1599 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1611 return; 1600 return;
1612 } 1601 }
1613 1602
1614 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1603 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1615 } 1604 }
1616 1605
1617 } // namespace content 1606 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | gpu/command_buffer/client/gpu_memory_buffer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698