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

Unified Diff: content/browser/renderer_host/image_transport_factory.cc

Issue 10828262: Partial revert of 146621 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura bot Created 8 years, 4 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: content/browser/renderer_host/image_transport_factory.cc
diff --git a/content/browser/renderer_host/image_transport_factory.cc b/content/browser/renderer_host/image_transport_factory.cc
index 08fbe6b28e76da4dbe211aacb47a9a3ac8aff40d..e8ab1b1d641e196188003292af661cb7fec09a13 100644
--- a/content/browser/renderer_host/image_transport_factory.cc
+++ b/content/browser/renderer_host/image_transport_factory.cc
@@ -57,8 +57,7 @@ class DefaultTransportFactory
virtual scoped_refptr<ui::Texture> CreateTransportClient(
const gfx::Size& size,
- uint64 transport_handle,
- ui::Compositor* compositor) OVERRIDE {
+ uint64 transport_handle) OVERRIDE {
return NULL;
}
@@ -86,27 +85,16 @@ class DefaultTransportFactory
class ImageTransportClientTexture : public ui::Texture {
public:
ImageTransportClientTexture(
- WebKit::WebGraphicsContext3D* host_context,
const gfx::Size& size,
uint64 surface_id)
- : ui::Texture(true, size),
- host_context_(host_context) {
+ : ui::Texture(true, size) {
set_texture_id(surface_id);
}
- virtual WebKit::WebGraphicsContext3D* HostContext3D() {
- return host_context_;
- }
-
protected:
virtual ~ImageTransportClientTexture() {}
private:
- // A raw pointer. This |ImageTransportClientTexture| will be destroyed
- // before the |host_context_| via
- // |ImageTransportFactoryObserver::OnLostContext()| handlers.
- WebKit::WebGraphicsContext3D* host_context_;
-
DISALLOW_COPY_AND_ASSIGN(ImageTransportClientTexture);
};
@@ -221,13 +209,9 @@ class GpuProcessTransportFactory : public ui::ContextFactory,
virtual scoped_refptr<ui::Texture> CreateTransportClient(
const gfx::Size& size,
- uint64 transport_handle,
- ui::Compositor* compositor) {
- PerCompositorData* data = per_compositor_data_[compositor];
- DCHECK(data);
+ uint64 transport_handle) {
scoped_refptr<ImageTransportClientTexture> image(
- new ImageTransportClientTexture(data->shared_context.get(),
- size, transport_handle));
+ new ImageTransportClientTexture(size, transport_handle));
return image;
}
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698