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

Unified Diff: gpu/command_buffer/service/gpu_processor_mac.cc

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 years, 2 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: gpu/command_buffer/service/gpu_processor_mac.cc
diff --git a/gpu/command_buffer/service/gpu_processor_mac.cc b/gpu/command_buffer/service/gpu_processor_mac.cc
index 17dee69e0621e7b076794d97411f5f4021d01512..99721e9bbe5cb830f509f55e663fd7e50ada0020 100644
--- a/gpu/command_buffer/service/gpu_processor_mac.cc
+++ b/gpu/command_buffer/service/gpu_processor_mac.cc
@@ -93,6 +93,12 @@ void GPUProcessor::SetTransportDIBAllocAndFree(
surface_->SetTransportDIBAllocAndFree(allocator, deallocator);
}
+uint64 GPUProcessor::GetSurfaceId() {
+ if (!surface_.get())
+ return 0;
+ return surface_->GetSurfaceId();
+}
+
void GPUProcessor::WillSwapBuffers() {
DCHECK(decoder_.get());
DCHECK(decoder_->GetGLContext());

Powered by Google App Engine
This is Rietveld 408576698