| 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 "config.h" | |
| 6 #include "web_external_texture_layer_impl.h" | 5 #include "web_external_texture_layer_impl.h" |
| 7 | 6 |
| 8 #include "cc/resource_update_queue.h" | 7 #include "cc/resource_update_queue.h" |
| 9 #include "cc/texture_layer.h" | 8 #include "cc/texture_layer.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayerClient.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayerClient.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 13 #include "web_layer_impl.h" | 12 #include "web_layer_impl.h" |
| 14 | 13 |
| 15 using namespace cc; | 14 using namespace cc; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 TextureCopier::Parameters copy = { sourceTexture, destinationTexture, si
ze }; | 89 TextureCopier::Parameters copy = { sourceTexture, destinationTexture, si
ze }; |
| 91 m_queue.appendCopy(copy); | 90 m_queue.appendCopy(copy); |
| 92 } | 91 } |
| 93 | 92 |
| 94 private: | 93 private: |
| 95 ResourceUpdateQueue& m_queue; | 94 ResourceUpdateQueue& m_queue; |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 unsigned WebExternalTextureLayerImpl::prepareTexture(ResourceUpdateQueue& queue) | 97 unsigned WebExternalTextureLayerImpl::prepareTexture(ResourceUpdateQueue& queue) |
| 99 { | 98 { |
| 100 ASSERT(m_client); | 99 DCHECK(m_client); |
| 101 WebTextureUpdaterImpl updaterImpl(queue); | 100 WebTextureUpdaterImpl updaterImpl(queue); |
| 102 return m_client->prepareTexture(updaterImpl); | 101 return m_client->prepareTexture(updaterImpl); |
| 103 } | 102 } |
| 104 | 103 |
| 105 WebGraphicsContext3D* WebExternalTextureLayerImpl::context() | 104 WebGraphicsContext3D* WebExternalTextureLayerImpl::context() |
| 106 { | 105 { |
| 107 ASSERT(m_client); | 106 DCHECK(m_client); |
| 108 return m_client->context(); | 107 return m_client->context(); |
| 109 } | 108 } |
| 110 | 109 |
| 111 } // namespace WebKit | 110 } // namespace WebKit |
| OLD | NEW |