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

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

Issue 12038095: Android webview fix gpu crashes after destroy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fixes. Created 7 years, 10 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
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 "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // This class provides an interface to look up window surface handles 12 // This class provides an interface to look up window surface handles
13 // that cannot be sent through the IPC channel. 13 // that cannot be sent through the IPC channel.
14 class GpuSurfaceLookup { 14 class GpuSurfaceLookup {
15 public: 15 public:
16 GpuSurfaceLookup() { } 16 GpuSurfaceLookup() { }
17 virtual ~GpuSurfaceLookup() { } 17 virtual ~GpuSurfaceLookup() { }
18 18
19 static GpuSurfaceLookup* GetInstance(); 19 static GpuSurfaceLookup* GetInstance();
20 static void InitInstance(GpuSurfaceLookup* lookup); 20 static void InitInstance(GpuSurfaceLookup* lookup);
21 21
22 virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) = 0; 22 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) = 0;
23 23
24 private: 24 private:
25 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup); 25 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup);
26 }; 26 };
27 27
28 } // namespace content 28 } // namespace content
29 29
30 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_ 30 #endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/image_transport_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698