Chromium Code Reviews

Side by Side Diff: chrome/gpu/gpu_command_buffer_stub.cc

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/common/child_thread.h" 10 #include "chrome/common/child_thread.h"
(...skipping 180 matching lines...)
191 } else { 191 } else {
192 // TODO(kbr): figure out what to do here. It wouldn't be difficult 192 // TODO(kbr): figure out what to do here. It wouldn't be difficult
193 // to support the compositor on 10.5, but the performance would be 193 // to support the compositor on 10.5, but the performance would be
194 // questionable. 194 // questionable.
195 NOTREACHED(); 195 NOTREACHED();
196 } 196 }
197 } 197 }
198 198
199 void GpuCommandBufferStub::SwapBuffersCallback() { 199 void GpuCommandBufferStub::SwapBuffersCallback() {
200 ChildThread* gpu_thread = ChildThread::current(); 200 ChildThread* gpu_thread = ChildThread::current();
201 gpu_thread->Send( 201 gpu_thread->Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(
202 new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(renderer_id_, 202 renderer_id_, render_view_id_, handle_, processor_->GetSurfaceId()));
203 render_view_id_,
204 handle_));
205 } 203 }
206 #endif // defined(OS_MACOSX) 204 #endif // defined(OS_MACOSX)
207 205
208 #endif // ENABLE_GPU 206 #endif // ENABLE_GPU
OLDNEW

Powered by Google App Engine