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

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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_touch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c30fdc7d6c093ce0a6718e81585a02f72b4c36a2..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::TextureDrawParams& params) OVERRIDE;
-
protected:
- ~AcceleratedSurfaceContainerTouch();
+ AcceleratedSurfaceContainerTouch(
+ ui::CompositorGL* compositor,
+ const gfx::Size& size);
- void* image_;
+ private:
DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerTouch);
};
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_touch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698