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

Unified Diff: chrome/browser/renderer_host/accelerated_surface_container_touch.h

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 5 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: chrome/browser/renderer_host/accelerated_surface_container_touch.h
diff --git a/chrome/browser/renderer_host/accelerated_surface_container_touch.h b/chrome/browser/renderer_host/accelerated_surface_container_touch.h
index ee5bf68896a42f2de9a42e36135b1d6f7c571caf..8c770fa8dff7141faedef2a15f4709e4903cb25c 100644
--- a/chrome/browser/renderer_host/accelerated_surface_container_touch.h
+++ b/chrome/browser/renderer_host/accelerated_surface_container_touch.h
@@ -7,7 +7,6 @@
#pragma once
#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
#include "ui/gfx/compositor/compositor_gl.h"
// Helper class for storing image data from the GPU process renderered
@@ -16,20 +15,22 @@
// or destroyed.
class AcceleratedSurfaceContainerTouch : public ui::TextureGL {
public:
- AcceleratedSurfaceContainerTouch(ui::CompositorGL* compositor,
- const gfx::Size& size,
- uint64 surface_handle);
+ static AcceleratedSurfaceContainerTouch* CreateAcceleratedSurfaceContainer(
+ ui::CompositorGL* compositor,
+ const gfx::Size& size,
+ uint64 surface_handle);
+ // TextureGL implementation
virtual void SetBitmap(const SkBitmap& bitmap,
const gfx::Point& origin,
const gfx::Size& overall_size) OVERRIDE;
- virtual void Draw(const ui::Transform& transform) OVERRIDE;
-
protected:
- ~AcceleratedSurfaceContainerTouch();
+ AcceleratedSurfaceContainerTouch(
+ ui::CompositorGL* compositor,
+ const gfx::Size& size);
- void* image_;
+ private:
DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerTouch);
};

Powered by Google App Engine
This is Rietveld 408576698