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

Side by Side Diff: content/common/gpu/gpu_surface_lookup.h

Issue 1567193002: Add GpuSurfaceLookup::AcquireJavaSurface for AVDA on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiler warning; remove std::move Created 4 years, 11 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 | « content/app/android/child_process_service.cc ('k') | content/common/gpu/gpu_surface_lookup.cc » ('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 CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
6 #define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ 6 #define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 #if defined(OS_ANDROID)
13 #include "ui/gl/android/scoped_java_surface.h"
14 #endif
15
12 namespace content { 16 namespace content {
13 17
14 // This class provides an interface to look up window surface handles 18 // This class provides an interface to look up window surface handles
15 // that cannot be sent through the IPC channel. 19 // that cannot be sent through the IPC channel.
16 class CONTENT_EXPORT GpuSurfaceLookup { 20 class CONTENT_EXPORT GpuSurfaceLookup {
17 public: 21 public:
18 GpuSurfaceLookup() { } 22 GpuSurfaceLookup() { }
19 virtual ~GpuSurfaceLookup() { } 23 virtual ~GpuSurfaceLookup() { }
20 24
21 static GpuSurfaceLookup* GetInstance(); 25 static GpuSurfaceLookup* GetInstance();
22 static void InitInstance(GpuSurfaceLookup* lookup); 26 static void InitInstance(GpuSurfaceLookup* lookup);
23 27
24 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) = 0; 28 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) = 0;
25 29
30 #if defined(OS_ANDROID)
31 virtual gfx::ScopedJavaSurface AcquireJavaSurface(int surface_id);
32 #endif
33
26 private: 34 private:
27 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); 35 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup);
28 }; 36 };
29 37
30 } // namespace content 38 } // namespace content
31 39
32 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ 40 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
OLDNEW
« no previous file with comments | « content/app/android/child_process_service.cc ('k') | content/common/gpu/gpu_surface_lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698