Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/backing_store.h" | 5 #include "content/browser/renderer_host/backing_store.h" |
| 6 | 6 |
| 7 namespace content { | |
| 8 | |
| 7 BackingStore::BackingStore(content::RenderWidgetHost* widget, | 9 BackingStore::BackingStore(content::RenderWidgetHost* widget, |
|
jam
2012/07/20 23:35:39
nit: get rid of "content::"
| |
| 8 const gfx::Size& size) | 10 const gfx::Size& size) |
| 9 : render_widget_host_(widget), | 11 : render_widget_host_(widget), |
| 10 size_(size) { | 12 size_(size) { |
| 11 } | 13 } |
| 12 | 14 |
| 13 BackingStore::~BackingStore() { | 15 BackingStore::~BackingStore() { |
| 14 } | 16 } |
| 15 | 17 |
| 16 size_t BackingStore::MemorySize() { | 18 size_t BackingStore::MemorySize() { |
| 17 return size_.GetArea() * 4; | 19 return size_.GetArea() * 4; |
| 18 } | 20 } |
| 21 | |
| 22 } // namespace content | |
| OLD | NEW |