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 "chrome/browser/renderer_host/backing_store.h" | 5 #include "content/browser/renderer_host/backing_store.h" |
6 | 6 |
7 BackingStore::BackingStore(RenderWidgetHost* widget, const gfx::Size& size) | 7 BackingStore::BackingStore(RenderWidgetHost* widget, const gfx::Size& size) |
8 : render_widget_host_(widget), | 8 : render_widget_host_(widget), |
9 size_(size) { | 9 size_(size) { |
10 } | 10 } |
11 | 11 |
12 BackingStore::~BackingStore() { | 12 BackingStore::~BackingStore() { |
13 } | 13 } |
14 | 14 |
15 size_t BackingStore::MemorySize() { | 15 size_t BackingStore::MemorySize() { |
16 return size_.GetArea() * 4; | 16 return size_.GetArea() * 4; |
17 } | 17 } |
OLD | NEW |