Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: webkit/compositor_bindings/web_external_texture_layer_impl.cc

Issue 12962007: cc: Chromify resource_update_queue (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 class WebTextureUpdaterImpl : public WebKit::WebTextureUpdater { 69 class WebTextureUpdaterImpl : public WebKit::WebTextureUpdater {
70 public: 70 public:
71 explicit WebTextureUpdaterImpl(ResourceUpdateQueue* queue) : queue_(queue) {} 71 explicit WebTextureUpdaterImpl(ResourceUpdateQueue* queue) : queue_(queue) {}
72 72
73 virtual void appendCopy(unsigned source_texture, 73 virtual void appendCopy(unsigned source_texture,
74 unsigned destination_texture, 74 unsigned destination_texture,
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::Context3d() { 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
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698