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

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

Issue 2190033002: content: Add ContextProviderFactory to create a render ContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove display_ DCHECK. 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
« no previous file with comments | « content/browser/gpu/gpu_surface_tracker.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_surface_tracker.cc
diff --git a/content/browser/gpu/gpu_surface_tracker.cc b/content/browser/gpu/gpu_surface_tracker.cc
index d04a0e2f4249d3279da4601389e84bd64efbe768..3c6754c4ba991542a6e8e27b6e57ff09903db2a8 100644
--- a/content/browser/gpu/gpu_surface_tracker.cc
+++ b/content/browser/gpu/gpu_surface_tracker.cc
@@ -36,6 +36,11 @@ int GpuSurfaceTracker::AddSurfaceForNativeWidget(
return surface_handle;
}
+bool GpuSurfaceTracker::IsValidSurfaceHandle(
+ gpu::SurfaceHandle surface_handle) const {
+ return surface_map_.find(surface_handle) != surface_map_.end();
+}
+
void GpuSurfaceTracker::RemoveSurface(gpu::SurfaceHandle surface_handle) {
base::AutoLock lock(lock_);
DCHECK(surface_map_.find(surface_handle) != surface_map_.end());
« no previous file with comments | « content/browser/gpu/gpu_surface_tracker.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698