Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / browser / renderer_host / backing_store.cc
blob8557437fb2534488189355d10965571677104098
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.
5 #include "content/browser/renderer_host/backing_store.h"
7 namespace content {
9 BackingStore::BackingStore(RenderWidgetHost* widget, const gfx::Size& size)
10 : render_widget_host_(widget),
11 size_(size) {
14 BackingStore::~BackingStore() {
17 size_t BackingStore::MemorySize() {
18 return size_.GetArea() * 4;
21 } // namespace content