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

Unified Diff: webkit/compositor_bindings/web_external_texture_layer_impl.cc

Issue 12670009: cc: Chromify TextureLayerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: webkit/compositor_bindings/web_external_texture_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_external_texture_layer_impl.cc b/webkit/compositor_bindings/web_external_texture_layer_impl.cc
index 979e754678c4a4ddf6e5a075d5092b678f57d591..147612546923992daa9d859c7dbf01290c69f345 100644
--- a/webkit/compositor_bindings/web_external_texture_layer_impl.cc
+++ b/webkit/compositor_bindings/web_external_texture_layer_impl.cc
@@ -67,28 +67,28 @@ void WebExternalTextureLayerImpl::setRateLimitContext(bool rate_limit) {
class WebTextureUpdaterImpl : public WebTextureUpdater {
public:
- explicit WebTextureUpdaterImpl(ResourceUpdateQueue& queue) : queue_(queue) {}
+ explicit WebTextureUpdaterImpl(ResourceUpdateQueue* queue) : queue_(queue) {}
virtual void appendCopy(unsigned source_texture,
unsigned destination_texture,
WebSize size) OVERRIDE {
TextureCopier::Parameters copy = { source_texture, destination_texture,
size };
- queue_.appendCopy(copy);
+ queue_->appendCopy(copy);
}
private:
- ResourceUpdateQueue& queue_;
+ ResourceUpdateQueue* queue_;
};
-unsigned WebExternalTextureLayerImpl::prepareTexture(
- ResourceUpdateQueue& queue) {
+unsigned WebExternalTextureLayerImpl::PrepareTexture(
+ ResourceUpdateQueue* queue) {
DCHECK(client_);
WebTextureUpdaterImpl updater_impl(queue);
return client_->prepareTexture(updater_impl);
}
-WebGraphicsContext3D* WebExternalTextureLayerImpl::context() {
+WebGraphicsContext3D* WebExternalTextureLayerImpl::Context() {
DCHECK(client_);
return client_->context();
}

Powered by Google App Engine
This is Rietveld 408576698