[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / content / common / android / surface_texture_peer.h
blob03113b8a7d6a8274417a715fb7028846229a4411
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"
11 namespace content {
13 class SurfaceTexturePeer {
14 public:
15 static SurfaceTexturePeer* GetInstance();
17 static void InitInstance(SurfaceTexturePeer* instance);
19 // Establish the producer end for the given surface texture in another
20 // process.
21 virtual void EstablishSurfaceTexturePeer(
22 base::ProcessHandle pid,
23 scoped_refptr<gfx::SurfaceTexture> surface_texture,
24 int primary_id,
25 int secondary_id) = 0;
27 protected:
28 SurfaceTexturePeer();
29 virtual ~SurfaceTexturePeer();
31 private:
32 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeer);
35 } // namespace content
37 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_