summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/backing_store.cc
blob: feebac3b94bfd1a4ffd2c02a5703b2218f7f951b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/renderer_host/backing_store.h"

BackingStore::BackingStore(RenderWidgetHost* widget, const gfx::Size& size)
    : render_widget_host_(widget),
      size_(size) {
}

BackingStore::~BackingStore() {
}

size_t BackingStore::MemorySize() {
  return size_.GetArea() * 4;
}