OLD | NEW |
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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
6 | 6 |
7 #include "content/common/gpu/image_transport_surface.h" | 7 #include "content/common/gpu/image_transport_surface.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 #if defined(OS_MACOSX) | 127 #if defined(OS_MACOSX) |
128 params.window = handle_; | 128 params.window = handle_; |
129 #endif | 129 #endif |
130 manager_->Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); | 130 manager_->Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); |
131 } | 131 } |
132 | 132 |
133 void ImageTransportHelper::SendAcceleratedSurfacePostSubBuffer( | 133 void ImageTransportHelper::SendAcceleratedSurfacePostSubBuffer( |
134 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params params) { | 134 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params params) { |
135 params.surface_id = stub_->surface_id(); | 135 params.surface_id = stub_->surface_id(); |
136 params.route_id = route_id_; | 136 params.route_id = route_id_; |
| 137 params.surface_size = surface_->GetSize(); |
137 #if defined(OS_MACOSX) | 138 #if defined(OS_MACOSX) |
138 params.window = handle_; | 139 params.window = handle_; |
139 #endif | 140 #endif |
140 manager_->Send(new GpuHostMsg_AcceleratedSurfacePostSubBuffer(params)); | 141 manager_->Send(new GpuHostMsg_AcceleratedSurfacePostSubBuffer(params)); |
141 } | 142 } |
142 | 143 |
143 void ImageTransportHelper::SendAcceleratedSurfaceRelease( | 144 void ImageTransportHelper::SendAcceleratedSurfaceRelease( |
144 GpuHostMsg_AcceleratedSurfaceRelease_Params params) { | 145 GpuHostMsg_AcceleratedSurfaceRelease_Params params) { |
145 params.surface_id = stub_->surface_id(); | 146 params.surface_id = stub_->surface_id(); |
146 params.route_id = route_id_; | 147 params.route_id = route_id_; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 } | 331 } |
331 } | 332 } |
332 | 333 |
333 gfx::Size PassThroughImageTransportSurface::GetSize() { | 334 gfx::Size PassThroughImageTransportSurface::GetSize() { |
334 return GLSurfaceAdapter::GetSize(); | 335 return GLSurfaceAdapter::GetSize(); |
335 } | 336 } |
336 | 337 |
337 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} | 338 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} |
338 | 339 |
339 #endif // defined(ENABLE_GPU) | 340 #endif // defined(ENABLE_GPU) |
OLD | NEW |