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

Unified Diff: content/browser/gpu/gpu_surface_tracker.h

Issue 2190033002: content: Add ContextProviderFactory to create a render ContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format for realz Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_surface_tracker.h
diff --git a/content/browser/gpu/gpu_surface_tracker.h b/content/browser/gpu/gpu_surface_tracker.h
index 5e519b8f9c790a441206675e2018672c25e0f140..b5372f5d8c0899ef2513767f81481a324f24a1ac 100644
--- a/content/browser/gpu/gpu_surface_tracker.h
+++ b/content/browser/gpu/gpu_surface_tracker.h
@@ -48,6 +48,10 @@ class CONTENT_EXPORT GpuSurfaceTracker : public gpu::GpuSurfaceLookup {
// Adds a surface for a native widget. Returns the surface ID.
int AddSurfaceForNativeWidget(gfx::AcceleratedWidget widget);
+ // Return the surface for a native widget. Returns null if the widget is not
+ // found.
+ gpu::SurfaceHandle GetSurfaceForNativeWidget(gfx::AcceleratedWidget);
+
// Removes a given existing surface.
void RemoveSurface(gpu::SurfaceHandle surface_handle);

Powered by Google App Engine
This is Rietveld 408576698