summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/backing_store.cc
blob: 63bd1a3697162a78df60de2e3d45d5e3fc307f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 "content/browser/renderer_host/backing_store.h"

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

BackingStore::~BackingStore() {
}

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