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

Side by Side 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: 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 | Annotate | Revision Log
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_external_texture_layer_impl.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698