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 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/browser/renderer_host/backing_store.h" | 10 #include "content/browser/renderer_host/backing_store.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual bool CopyFromBackingStore(const gfx::Rect& rect, | 48 virtual bool CopyFromBackingStore(const gfx::Rect& rect, |
49 skia::PlatformCanvas* output) OVERRIDE; | 49 skia::PlatformCanvas* output) OVERRIDE; |
50 virtual void ScrollBackingStore(int dx, int dy, | 50 virtual void ScrollBackingStore(int dx, int dy, |
51 const gfx::Rect& clip_rect, | 51 const gfx::Rect& clip_rect, |
52 const gfx::Size& view_size) OVERRIDE; | 52 const gfx::Size& view_size) OVERRIDE; |
53 | 53 |
54 private: | 54 private: |
55 SkBitmap bitmap_; | 55 SkBitmap bitmap_; |
56 | 56 |
57 scoped_ptr<SkCanvas> canvas_; | 57 scoped_ptr<SkCanvas> canvas_; |
| 58 int device_scale_factor_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(BackingStoreSkia); | 60 DISALLOW_COPY_AND_ASSIGN(BackingStoreSkia); |
60 }; | 61 }; |
61 | 62 |
62 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ | 63 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ |
OLD | NEW |