| 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 BackingStore::BackingStore(content::RenderWidgetHost* widget, | 7 namespace content { |
| 8 const gfx::Size& size) | 8 |
| 9 BackingStore::BackingStore(RenderWidgetHost* widget, const gfx::Size& size) |
| 9 : render_widget_host_(widget), | 10 : render_widget_host_(widget), |
| 10 size_(size) { | 11 size_(size) { |
| 11 } | 12 } |
| 12 | 13 |
| 13 BackingStore::~BackingStore() { | 14 BackingStore::~BackingStore() { |
| 14 } | 15 } |
| 15 | 16 |
| 16 size_t BackingStore::MemorySize() { | 17 size_t BackingStore::MemorySize() { |
| 17 return size_.GetArea() * 4; | 18 return size_.GetArea() * 4; |
| 18 } | 19 } |
| 20 |
| 21 } // namespace content |
| OLD | NEW |