Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |