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

Unified Diff: cc/surfaces/surface.h

Issue 1989453003: cc: Add ScopedReadLockGpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix aura typo Created 4 years, 7 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 | « cc/resources/resource_provider_unittest.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.h
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index e6aeb84f7f5659f0b466e2fcc0f1626428c19aa0..1250586181ed2858dc15a8d5e53fcb30eb3ad840 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -49,6 +49,10 @@ class CC_SURFACES_EXPORT Surface {
}
void SetPreviousFrameSurface(Surface* surface);
+ void SetGpuMemoryBufferClientId(int gpu_memory_buffer_client_id);
+ int gpu_memory_buffer_client_id() const {
+ return gpu_memory_buffer_client_id_;
+ }
void QueueFrame(std::unique_ptr<CompositorFrame> frame,
const DrawCallback& draw_callback);
@@ -94,6 +98,7 @@ class CC_SURFACES_EXPORT Surface {
SurfaceId surface_id_;
SurfaceId previous_frame_surface_id_;
+ int gpu_memory_buffer_client_id_ = -1;
base::WeakPtr<SurfaceFactory> factory_;
// TODO(jamesr): Support multiple frames in flight.
std::unique_ptr<CompositorFrame> current_frame_;
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698