1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "content/browser/renderer_host/backing_store.h" 6 7 namespace content { 8 9 BackingStore::BackingStore(RenderWidgetHost* widget, const gfx::Size& size) 10 : render_widget_host_(widget), 11 size_(size) { 12 } 13 14 BackingStore::~BackingStore() { 15 } 16 17 size_t BackingStore::MemorySize() { 18 return size_.GetArea() * 4; 19 } 20 21 } // namespace content 22