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

Side by Side Diff: content/common/android/surface_texture_peer.h

Issue 10546079: Added sandboxed process service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Init Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
7
8 #include <jni.h>
9
10 #include "base/process.h"
11
12 namespace content {
13
14 class SurfaceTexturePeer {
15 public:
16 enum SurfaceTextureTarget {
17 // These are used in java so don't change them unless we can
18 // share an enum from java and remove this enum.
19 SET_GPU_SURFACE_TEXTURE = 0, // Contains gpu surface_texture_ and id
20 SET_VIDEO_SURFACE_TEXTURE = 1, // contains video surface_texture_ and id
21 };
22
23 static SurfaceTexturePeer* GetInstance();
24
25 static void InitInstance(SurfaceTexturePeer* instance);
26
27 // Establish the producer end for the given surface texture in another
28 // process.
29 virtual void EstablishSurfaceTexturePeer(base::ProcessHandle pid,
30 SurfaceTextureTarget type,
31 jobject j_surface_texture,
32 int primary_id,
33 int secondary_id) = 0;
34
35 protected:
36 SurfaceTexturePeer();
37 virtual ~SurfaceTexturePeer();
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeer);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698