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

Side by Side Diff: content/common/gpu/image_transport_surface.cc

Issue 11099037: Plumb through surface size for --enable-partial-swaps on OSX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698