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

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

Issue 2285593002: Add ScopedSurfaceRequestManager (Closed)
Patch Set: Fixing comments. 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 gl {
13 class SurfaceTexture;
14 }
15
16 namespace gpu {
17
18 // Allows the forwarding of SurfaceTextures from the GPU or the browser process
19 // to fulfill requests registered by the ScopedSurfaceRequestManager.
20 //
21 // TODO(tguilbert): Change the type of request_token to the unguessable token
22 // type, when crbug.com/643857 is completed.
23 class GPU_EXPORT ScopedSurfaceRequestConduit {
24 public:
25 static ScopedSurfaceRequestConduit* GetInstance();
26 static void SetInstance(ScopedSurfaceRequestConduit* instance);
27
28 // Sends the surface texture to the ScopedSurfaceRequestManager in the browser
29 // process, to fulfill the request registered under the |request_token| key.
30 virtual void ForwardSurfaceTextureForSurfaceRequest(
31 std::string request_token,
32 gl::SurfaceTexture* surface_texture) = 0;
33
34 protected:
35 virtual ~ScopedSurfaceRequestConduit() {}
36 };
37
38 } // namespace gpu
39
40 #endif // GPU_IPC_COMMON_ANDROID_SCOPED_SURFACE_REQUEST_CONDUIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698