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" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "third_party/skia/include/core/SkPaint.h" |
13 | 14 |
14 class SkCanvas; | 15 class SkCanvas; |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Point; | 18 class Point; |
18 class Canvas; | 19 class Canvas; |
19 } | 20 } |
20 | 21 |
21 // A backing store that uses skia. This is a temporary backing store used by | 22 // A backing store that uses skia. This is a temporary backing store used by |
22 // RenderWidgetHostViewViews. In time, only GPU rendering will be used for | 23 // RenderWidgetHostViewViews. In time, only GPU rendering will be used for |
(...skipping 20 matching lines...) Expand all Loading... |
43 skia::PlatformCanvas* output); | 44 skia::PlatformCanvas* output); |
44 virtual void ScrollBackingStore(int dx, int dy, | 45 virtual void ScrollBackingStore(int dx, int dy, |
45 const gfx::Rect& clip_rect, | 46 const gfx::Rect& clip_rect, |
46 const gfx::Size& view_size); | 47 const gfx::Size& view_size); |
47 | 48 |
48 private: | 49 private: |
49 SkBitmap bitmap_; | 50 SkBitmap bitmap_; |
50 | 51 |
51 scoped_ptr<SkCanvas> canvas_; | 52 scoped_ptr<SkCanvas> canvas_; |
52 | 53 |
| 54 SkPaint copy_paint_; |
| 55 |
53 DISALLOW_COPY_AND_ASSIGN(BackingStoreSkia); | 56 DISALLOW_COPY_AND_ASSIGN(BackingStoreSkia); |
54 }; | 57 }; |
55 | 58 |
56 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ | 59 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ |
OLD | NEW |