| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "webkit/compositor_bindings/web_external_texture_layer_impl.h" | 5 #include "webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h" |
| 6 | 6 |
| 7 #include "cc/layers/texture_layer.h" | 7 #include "cc/layers/texture_layer.h" |
| 8 #include "cc/resources/resource_update_queue.h" | 8 #include "cc/resources/resource_update_queue.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayerClient.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayerClient.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureM
ailbox.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureM
ailbox.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 13 #include "webkit/compositor_bindings/web_layer_impl.h" | 13 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
| 14 | 14 |
| 15 using cc::TextureLayer; | 15 using cc::TextureLayer; |
| 16 using cc::ResourceUpdateQueue; | 16 using cc::ResourceUpdateQueue; |
| 17 | 17 |
| 18 namespace webkit { | 18 namespace webkit { |
| 19 | 19 |
| 20 WebExternalTextureLayerImpl::WebExternalTextureLayerImpl( | 20 WebExternalTextureLayerImpl::WebExternalTextureLayerImpl( |
| 21 WebKit::WebExternalTextureLayerClient* client, | 21 WebKit::WebExternalTextureLayerClient* client, |
| 22 bool mailbox) | 22 bool mailbox) |
| 23 : client_(client), | 23 : client_(client), |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 if (lost_resource) | 130 if (lost_resource) |
| 131 return; | 131 return; |
| 132 | 132 |
| 133 WebKit::WebExternalTextureMailbox available_mailbox; | 133 WebKit::WebExternalTextureMailbox available_mailbox; |
| 134 memcpy(available_mailbox.name, mailbox.name, sizeof(available_mailbox.name)); | 134 memcpy(available_mailbox.name, mailbox.name, sizeof(available_mailbox.name)); |
| 135 available_mailbox.syncPoint = sync_point; | 135 available_mailbox.syncPoint = sync_point; |
| 136 client_->mailboxReleased(available_mailbox); | 136 client_->mailboxReleased(available_mailbox); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace webkit | 139 } // namespace webkit |
| OLD | NEW |