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

Side by Side Diff: gpu/ipc/common/android/scoped_surface_request_conduit.h

Issue 2285593002: Add ScopedSurfaceRequestManager (Closed)
Patch Set: Changed JNI serialization to 2 longs Created 4 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2016 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 GPU_IPC_COMMON_ANDROID_SCOPED_SURFACE_REQUEST_CONDUIT_H_
6 #define GPU_IPC_COMMON_ANDROID_SCOPED_SURFACE_REQUEST_CONDUIT_H_
7
8 #include <string>
9
10 #include "gpu/gpu_export.h"
11
12 namespace base {
13 struct Nonce;
14 }
15
16 namespace gl {
17 class SurfaceTexture;
18 }
19
20 namespace gpu {
21
22 // Allows the forwarding of SurfaceTextures from the GPU or the browser process
23 // to fulfill requests registered by the ScopedSurfaceRequestManager.
24 class GPU_EXPORT ScopedSurfaceRequestConduit {
25 public:
26 static ScopedSurfaceRequestConduit* GetInstance();
27 static void SetInstance(ScopedSurfaceRequestConduit* instance);
28
29 // Sends the surface texture to the ScopedSurfaceRequestManager in the browser
30 // process, to fulfill the request registered under the |request_token| key.
31 virtual void ForwardSurfaceTextureForSurfaceRequest(
32 base::Nonce request_token,
33 gl::SurfaceTexture* surface_texture) = 0;
34
35 protected:
36 virtual ~ScopedSurfaceRequestConduit() {}
37 };
38
39 } // namespace gpu
40
41 #endif // GPU_IPC_COMMON_ANDROID_SCOPED_SURFACE_REQUEST_CONDUIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698