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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « gpu/ipc/common/android/surface_texture_manager.h ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_IPC_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_ 5 #ifndef GPU_IPC_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
6 #define GPU_IPC_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_ 6 #define GPU_IPC_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
11 #include "ui/gl/android/surface_texture.h" 11 #include "ui/gl/android/surface_texture.h"
12 12
13 namespace gpu { 13 namespace gpu {
14 14
15 class GPU_EXPORT SurfaceTexturePeer { 15 class GPU_EXPORT SurfaceTexturePeer {
16 public: 16 public:
17 static SurfaceTexturePeer* GetInstance(); 17 static SurfaceTexturePeer* GetInstance();
18 18
19 static void InitInstance(SurfaceTexturePeer* instance); 19 static void InitInstance(SurfaceTexturePeer* instance);
20 20
21 // Establish the producer end for the given surface texture in another 21 // Establish the producer end for the given surface texture in another
22 // process. 22 // process.
23 virtual void EstablishSurfaceTexturePeer( 23 virtual void EstablishSurfaceTexturePeer(
24 base::ProcessHandle pid, 24 base::ProcessHandle pid,
25 scoped_refptr<gfx::SurfaceTexture> surface_texture, 25 scoped_refptr<gl::SurfaceTexture> surface_texture,
26 int primary_id, 26 int primary_id,
27 int secondary_id) = 0; 27 int secondary_id) = 0;
28 28
29 protected: 29 protected:
30 SurfaceTexturePeer(); 30 SurfaceTexturePeer();
31 virtual ~SurfaceTexturePeer(); 31 virtual ~SurfaceTexturePeer();
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeer); 34 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeer);
35 }; 35 };
36 36
37 } // namespace gpu 37 } // namespace gpu
38 38
39 #endif // GPU_IPC_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_ 39 #endif // GPU_IPC_COMMON_ANDROID_SURFACE_TEXTURE_PEER_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/android/surface_texture_manager.h ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698