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