| Index: content/browser/renderer_host/compositor_impl_android.h
|
| diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
|
| index 15a16b34d1d2c4d9ba1182c9803febc468d24f8c..5d1eecddfeacab12e14ecf276bb2714ffdf7da92 100644
|
| --- a/content/browser/renderer_host/compositor_impl_android.h
|
| +++ b/content/browser/renderer_host/compositor_impl_android.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/containers/scoped_ptr_hash_map.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/process/process_handle.h"
|
| #include "cc/resources/ui_resource_client.h"
|
| #include "cc/trees/layer_tree_host_client.h"
|
| #include "cc/trees/layer_tree_host_single_thread_client.h"
|
| @@ -49,6 +50,17 @@ class CONTENT_EXPORT CompositorImpl
|
| // Returns the Java Surface object for a given view surface id.
|
| static jobject GetSurface(int surface_id);
|
|
|
| + // Returns the Java Surface object for a given surface texture id.
|
| + static jobject GetSurfaceTextureSurface(int surface_texture_id,
|
| + base::ProcessHandle process_handle);
|
| +
|
| + // Allocates a surface texture and returns a surface texture id. Returns -1 on
|
| + // failure.
|
| + static int AllocateSurfaceTexture(base::ProcessHandle process_handle);
|
| +
|
| + // Destroy all surface textures associated with |process_handle|.
|
| + static void DestroyAllSurfaceTextures(base::ProcessHandle process_handle);
|
| +
|
| // Compositor implementation.
|
| virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE;
|
| virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE;
|
|
|