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

Side by Side Diff: content/common/gpu/image_transport_surface_fbo_mac.mm

Issue 1059483004: Mac: Use appropriate mechanism to determine partial swap capability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/common/gpu/image_transport_surface_fbo_mac.h" 5 #include "content/common/gpu/image_transport_surface_fbo_mac.h"
6 6
7 #include "content/common/gpu/gpu_messages.h" 7 #include "content/common/gpu/gpu_messages.h"
8 #include "content/common/gpu/image_transport_surface_calayer_mac.h" 8 #include "content/common/gpu/image_transport_surface_calayer_mac.h"
9 #include "content/common/gpu/image_transport_surface_iosurface_mac.h" 9 #include "content/common/gpu/image_transport_surface_iosurface_mac.h"
10 #include "ui/base/cocoa/remote_layer_api.h" 10 #include "ui/base/cocoa/remote_layer_api.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 bool ImageTransportSurfaceFBO::PostSubBuffer( 204 bool ImageTransportSurfaceFBO::PostSubBuffer(
205 int x, int y, int width, int height) { 205 int x, int y, int width, int height) {
206 // Mac does not support sub-buffer swaps. 206 // Mac does not support sub-buffer swaps.
207 NOTREACHED(); 207 NOTREACHED();
208 return false; 208 return false;
209 } 209 }
210 210
211 bool ImageTransportSurfaceFBO::SupportsPostSubBuffer() { 211 bool ImageTransportSurfaceFBO::SupportsPostSubBuffer() {
212 return true; 212 return false;
213 } 213 }
214 214
215 gfx::Size ImageTransportSurfaceFBO::GetSize() { 215 gfx::Size ImageTransportSurfaceFBO::GetSize() {
216 return pixel_size_; 216 return pixel_size_;
217 } 217 }
218 218
219 void* ImageTransportSurfaceFBO::GetHandle() { 219 void* ImageTransportSurfaceFBO::GetHandle() {
220 return NULL; 220 return NULL;
221 } 221 }
222 222
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 return; 397 return;
398 } 398 }
399 399
400 has_complete_framebuffer_ = true; 400 has_complete_framebuffer_ = true;
401 401
402 glBindTexture(texture_target, previous_texture_id); 402 glBindTexture(texture_target, previous_texture_id);
403 // The FBO remains bound for this GL context. 403 // The FBO remains bound for this GL context.
404 } 404 }
405 405
406 } // namespace content 406 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698