1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
8 #include "base/process/process.h"
9 #include "ui/gl/android/surface_texture.h"
13 class SurfaceTexturePeer {
15 static SurfaceTexturePeer* GetInstance();
17 static void InitInstance(SurfaceTexturePeer* instance);
19 // Establish the producer end for the given surface texture in another
21 virtual void EstablishSurfaceTexturePeer(
22 base::ProcessHandle pid,
23 scoped_refptr<gfx::SurfaceTexture> surface_texture,
25 int secondary_id) = 0;
29 virtual ~SurfaceTexturePeer();
32 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeer);
35 } // namespace content
37 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_