OLD | NEW |
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...) Loading... |
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 |
OLD | NEW |