| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ | |
| 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "chrome/browser/renderer_host/backing_store.h" | |
| 11 | |
| 12 class TestBackingStore : public BackingStore { | |
| 13 public: | |
| 14 TestBackingStore(RenderWidgetHost* widget, const gfx::Size& size); | |
| 15 virtual ~TestBackingStore(); | |
| 16 | |
| 17 // BackingStore implementation. | |
| 18 virtual void PaintToBackingStore(RenderProcessHost* process, | |
| 19 TransportDIB::Id bitmap, | |
| 20 const gfx::Rect& bitmap_rect, | |
| 21 const std::vector<gfx::Rect>& copy_rects); | |
| 22 virtual bool CopyFromBackingStore(const gfx::Rect& rect, | |
| 23 skia::PlatformCanvas* output); | |
| 24 virtual void ScrollBackingStore(int dx, int dy, | |
| 25 const gfx::Rect& clip_rect, | |
| 26 const gfx::Size& view_size); | |
| 27 private: | |
| 28 DISALLOW_COPY_AND_ASSIGN(TestBackingStore); | |
| 29 }; | |
| 30 | |
| 31 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ | |
| OLD | NEW |