| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
| 6 | 6 |
| 7 TestBackingStore::TestBackingStore(content::RenderWidgetHost* widget, | 7 namespace content { |
| 8 |
| 9 TestBackingStore::TestBackingStore(RenderWidgetHost* widget, |
| 8 const gfx::Size& size) | 10 const gfx::Size& size) |
| 9 : BackingStore(widget, size) { | 11 : BackingStore(widget, size) { |
| 10 } | 12 } |
| 11 | 13 |
| 12 TestBackingStore::~TestBackingStore() { | 14 TestBackingStore::~TestBackingStore() { |
| 13 } | 15 } |
| 14 | 16 |
| 15 void TestBackingStore::PaintToBackingStore( | 17 void TestBackingStore::PaintToBackingStore( |
| 16 content::RenderProcessHost* process, | 18 RenderProcessHost* process, |
| 17 TransportDIB::Id bitmap, | 19 TransportDIB::Id bitmap, |
| 18 const gfx::Rect& bitmap_rect, | 20 const gfx::Rect& bitmap_rect, |
| 19 const std::vector<gfx::Rect>& copy_rects, | 21 const std::vector<gfx::Rect>& copy_rects, |
| 20 float scale_factor, | 22 float scale_factor, |
| 21 const base::Closure& completion_callback, | 23 const base::Closure& completion_callback, |
| 22 bool* scheduled_completion_callback) { | 24 bool* scheduled_completion_callback) { |
| 23 *scheduled_completion_callback = false; | 25 *scheduled_completion_callback = false; |
| 24 } | 26 } |
| 25 | 27 |
| 26 bool TestBackingStore::CopyFromBackingStore(const gfx::Rect& rect, | 28 bool TestBackingStore::CopyFromBackingStore(const gfx::Rect& rect, |
| 27 skia::PlatformCanvas* output) { | 29 skia::PlatformCanvas* output) { |
| 28 return false; | 30 return false; |
| 29 } | 31 } |
| 30 | 32 |
| 31 void TestBackingStore::ScrollBackingStore(int dx, int dy, | 33 void TestBackingStore::ScrollBackingStore(int dx, int dy, |
| 32 const gfx::Rect& clip_rect, | 34 const gfx::Rect& clip_rect, |
| 33 const gfx::Size& view_size) { | 35 const gfx::Size& view_size) { |
| 34 } | 36 } |
| 37 |
| 38 } // namespace content |
| OLD | NEW |