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

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: crown of aragorn 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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 init_params, 1202 init_params,
1203 route_id, 1203 route_id,
1204 &succeeded); 1204 &succeeded);
1205 1205
1206 // Allow calling this from the compositor thread. 1206 // Allow calling this from the compositor thread.
1207 thread_safe_sender()->Send(message); 1207 thread_safe_sender()->Send(message);
1208 1208
1209 return succeeded; 1209 return succeeded;
1210 } 1210 }
1211 1211
1212 void RenderThreadImpl::CreateImage(
1213 gfx::PluginWindowHandle window,
1214 int32 image_id,
1215 const CreateImageCallback& callback) {
1216 NOTREACHED();
1217 }
1218
1219 void RenderThreadImpl::DeleteImage(int32 image_id, int32 sync_point) {
1220 NOTREACHED();
1221 }
1222
1223 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer( 1212 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer(
1224 size_t width, 1213 size_t width,
1225 size_t height, 1214 size_t height,
1226 unsigned internalformat, 1215 unsigned internalformat,
1227 unsigned usage) { 1216 unsigned usage) {
1228 DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread()); 1217 DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread());
1229 1218
1230 if (!GpuMemoryBufferImpl::IsFormatValid(internalformat)) 1219 if (!GpuMemoryBufferImpl::IsFormatValid(internalformat))
1231 return scoped_ptr<gfx::GpuMemoryBuffer>(); 1220 return scoped_ptr<gfx::GpuMemoryBuffer>();
1232 1221
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 hidden_widget_count_--; 1569 hidden_widget_count_--;
1581 1570
1582 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1571 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1583 return; 1572 return;
1584 } 1573 }
1585 1574
1586 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1575 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1587 } 1576 }
1588 1577
1589 } // namespace content 1578 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698