| 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/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/WebFloatRect.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 WebKit::WebSize size) OVERRIDE { | 75 WebKit::WebSize size) OVERRIDE { |
| 76 cc::TextureCopier::Parameters copy = { source_texture, destination_texture, | 76 cc::TextureCopier::Parameters copy = { source_texture, destination_texture, |
| 77 size }; | 77 size }; |
| 78 queue_->appendCopy(copy); | 78 queue_->appendCopy(copy); |
| 79 } | 79 } |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 ResourceUpdateQueue* queue_; | 82 ResourceUpdateQueue* queue_; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 unsigned WebExternalTextureLayerImpl::prepareTexture( | 85 unsigned WebExternalTextureLayerImpl::PrepareTexture( |
| 86 ResourceUpdateQueue& queue) { | 86 ResourceUpdateQueue* queue) { |
| 87 DCHECK(client_); | 87 DCHECK(client_); |
| 88 WebTextureUpdaterImpl updater_impl(&queue); | 88 WebTextureUpdaterImpl updater_impl(queue); |
| 89 return client_->prepareTexture(updater_impl); | 89 return client_->prepareTexture(updater_impl); |
| 90 } | 90 } |
| 91 | 91 |
| 92 WebKit::WebGraphicsContext3D* WebExternalTextureLayerImpl::context() { | 92 WebKit::WebGraphicsContext3D* WebExternalTextureLayerImpl::Context3d() { |
| 93 DCHECK(client_); | 93 DCHECK(client_); |
| 94 return client_->context(); | 94 return client_->context(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace webkit | 97 } // namespace webkit |
| OLD | NEW |