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

Unified Diff: cc/surfaces/surface.cc

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/surfaces/surface.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.cc
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc
index 73181292cc176e0253e83de0cde55330f40ed5f7..f48fb83747bbd40df160820633b3b00cddfd5ba9 100644
--- a/cc/surfaces/surface.cc
+++ b/cc/surfaces/surface.cc
@@ -48,6 +48,13 @@ void Surface::SetPreviousFrameSurface(Surface* surface) {
previous_frame_surface_id_ = surface->surface_id();
}
+void Surface::SetGpuMemoryBufferClientId(int gpu_memory_buffer_client_id) {
+ // This should only be set once.
+ DCHECK_EQ(-1, gpu_memory_buffer_client_id_);
+ DCHECK_NE(gpu_memory_buffer_client_id, gpu_memory_buffer_client_id_);
+ gpu_memory_buffer_client_id_ = gpu_memory_buffer_client_id;
+}
+
void Surface::QueueFrame(std::unique_ptr<CompositorFrame> frame,
const DrawCallback& callback) {
DCHECK(factory_);
« no previous file with comments | « cc/surfaces/surface.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698