Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / browser / renderer_host / test_backing_store.cc
blob74fa44d48721b8770ef28e2cf085499f9ab05476
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/test_backing_store.h"
7 namespace content {
9 TestBackingStore::TestBackingStore(RenderWidgetHost* widget,
10 const gfx::Size& size)
11 : BackingStore(widget, size) {
14 TestBackingStore::~TestBackingStore() {
17 void TestBackingStore::PaintToBackingStore(
18 RenderProcessHost* process,
19 TransportDIB::Id bitmap,
20 const gfx::Rect& bitmap_rect,
21 const std::vector<gfx::Rect>& copy_rects,
22 float scale_factor,
23 const base::Closure& completion_callback,
24 bool* scheduled_completion_callback) {
25 *scheduled_completion_callback = false;
28 bool TestBackingStore::CopyFromBackingStore(const gfx::Rect& rect,
29 skia::PlatformBitmap* output) {
30 return false;
33 void TestBackingStore::ScrollBackingStore(const gfx::Vector2d& delta,
34 const gfx::Rect& clip_rect,
35 const gfx::Size& view_size) {
38 } // namespace content