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

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

Issue 2285593002: Add ScopedSurfaceRequestManager (Closed)
Patch Set: Addressing 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 <stdint.h>
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 class GPU_EXPORT ScopedSurfaceRequestConduit {
21 public:
22 static ScopedSurfaceRequestConduit* GetInstance();
23 static void SetInstance(ScopedSurfaceRequestConduit* instance);
24
25 // Sends the surface texture to the ScopedSurfaceRequestManager in the browser
26 // process, to fulfill the request registered under the |request_token| key.
27 virtual void ForwardSurfaceTextureForSurfaceRequest(
28 uint64_t request_token,
29 gl::SurfaceTexture* surface_texture) = 0;
30
31 protected:
32 virtual ~ScopedSurfaceRequestConduit() {}
33 };
34
35 } // namespace gpu
36
37 #endif // GPU_IPC_COMMON_ANDROID_SCOPED_SURFACE_REQUEST_CONDUIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698