| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/renderer_host/accelerated_surface_container_mac.h" | 5 #include "content/browser/renderer_host/accelerated_surface_container_mac.h" |
| 6 | 6 |
| 7 #include "app/surface/io_surface_support_mac.h" | |
| 8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 9 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" | 8 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" |
| 9 #include "ui/gfx/surface/io_surface_support_mac.h" |
| 10 #include "webkit/plugins/npapi/webplugin.h" | 10 #include "webkit/plugins/npapi/webplugin.h" |
| 11 | 11 |
| 12 AcceleratedSurfaceContainerMac::AcceleratedSurfaceContainerMac( | 12 AcceleratedSurfaceContainerMac::AcceleratedSurfaceContainerMac( |
| 13 AcceleratedSurfaceContainerManagerMac* manager, | 13 AcceleratedSurfaceContainerManagerMac* manager, |
| 14 bool opaque) | 14 bool opaque) |
| 15 : manager_(manager), | 15 : manager_(manager), |
| 16 opaque_(opaque), | 16 opaque_(opaque), |
| 17 surface_id_(0), | 17 surface_id_(0), |
| 18 width_(0), | 18 width_(0), |
| 19 height_(0), | 19 height_(0), |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 | 225 |
| 226 void AcceleratedSurfaceContainerMac::EnqueueTextureForDeletion() { | 226 void AcceleratedSurfaceContainerMac::EnqueueTextureForDeletion() { |
| 227 if (texture_) { | 227 if (texture_) { |
| 228 DCHECK(texture_pending_deletion_ == 0); | 228 DCHECK(texture_pending_deletion_ == 0); |
| 229 texture_pending_deletion_ = texture_; | 229 texture_pending_deletion_ = texture_; |
| 230 texture_ = 0; | 230 texture_ = 0; |
| 231 } | 231 } |
| 232 } | 232 } |
| 233 | 233 |
| OLD | NEW |