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

Unified Diff: content/browser/renderer_host/delegated_frame_evictor.cc

Issue 174323003: Expose locks for CopyFromCompositingSurface/CopyFromBackingStore API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 6 years, 10 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/renderer_host/delegated_frame_evictor.cc
diff --git a/content/browser/renderer_host/delegated_frame_evictor.cc b/content/browser/renderer_host/delegated_frame_evictor.cc
index 33d6b2c479f62224886927a18dc8bfa1f09d09fb..6b5185d347ce33a4de00ae9d157f12ed8ff2c546 100644
--- a/content/browser/renderer_host/delegated_frame_evictor.cc
+++ b/content/browser/renderer_host/delegated_frame_evictor.cc
@@ -48,4 +48,9 @@ void DelegatedFrameEvictor::EvictCurrentFrame() {
client_->EvictDelegatedFrame();
}
+size_t DelegatedFrameEvictor::FrameLockCount() {
+ if (!has_frame_) return 0;
piman 2014/03/04 19:09:55 nit: return on next line
powei 2014/03/04 20:49:22 Done. removed.
+ return RendererFrameManager::GetInstance()->LockedCount(this);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698