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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/delegated_frame_evictor.h" 5 #include "content/browser/renderer_host/delegated_frame_evictor.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 void DelegatedFrameEvictor::UnlockFrame() { 42 void DelegatedFrameEvictor::UnlockFrame() {
43 DCHECK(has_frame_); 43 DCHECK(has_frame_);
44 RendererFrameManager::GetInstance()->UnlockFrame(this); 44 RendererFrameManager::GetInstance()->UnlockFrame(this);
45 } 45 }
46 46
47 void DelegatedFrameEvictor::EvictCurrentFrame() { 47 void DelegatedFrameEvictor::EvictCurrentFrame() {
48 client_->EvictDelegatedFrame(); 48 client_->EvictDelegatedFrame();
49 } 49 }
50 50
51 size_t DelegatedFrameEvictor::FrameLockCount() {
52 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.
53 return RendererFrameManager::GetInstance()->LockedCount(this);
54 }
55
51 } // namespace content 56 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698