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

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

Issue 10795058: Add GL surface creation for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add interface for surface lookup Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
6 #define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 // This class provides an interface to look up window surface handles
11 // that cannot be sent through the IPC channel.
12 class GpuSurfaceLookup {
13 public:
14 GpuSurfaceLookup() { }
15 virtual ~GpuSurfaceLookup() { }
16
17 static GpuSurfaceLookup* GetInstance();
18 static void InitInstance(GpuSurfaceLookup* lookup);
19
20 virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) = 0;
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup);
24 };
25
26 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698