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_GTK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void PaintToRect(const gfx::Rect& dest_rect, GdkDrawable* target); | 57 void PaintToRect(const gfx::Rect& dest_rect, GdkDrawable* target); |
58 #endif | 58 #endif |
59 | 59 |
60 // BackingStore implementation. | 60 // BackingStore implementation. |
61 virtual size_t MemorySize() OVERRIDE; | 61 virtual size_t MemorySize() OVERRIDE; |
62 virtual void PaintToBackingStore( | 62 virtual void PaintToBackingStore( |
63 content::RenderProcessHost* process, | 63 content::RenderProcessHost* process, |
64 TransportDIB::Id bitmap, | 64 TransportDIB::Id bitmap, |
65 const gfx::Rect& bitmap_rect, | 65 const gfx::Rect& bitmap_rect, |
66 const std::vector<gfx::Rect>& copy_rects, | 66 const std::vector<gfx::Rect>& copy_rects, |
| 67 float scale_factor, |
67 const base::Closure& completion_callback, | 68 const base::Closure& completion_callback, |
68 bool* scheduled_completion_callback) OVERRIDE; | 69 bool* scheduled_completion_callback) OVERRIDE; |
69 virtual bool CopyFromBackingStore(const gfx::Rect& rect, | 70 virtual bool CopyFromBackingStore(const gfx::Rect& rect, |
70 skia::PlatformCanvas* output) OVERRIDE; | 71 skia::PlatformCanvas* output) OVERRIDE; |
71 virtual void ScrollBackingStore(int dx, int dy, | 72 virtual void ScrollBackingStore(int dx, int dy, |
72 const gfx::Rect& clip_rect, | 73 const gfx::Rect& clip_rect, |
73 const gfx::Size& view_size) OVERRIDE; | 74 const gfx::Size& view_size) OVERRIDE; |
74 | 75 |
75 private: | 76 private: |
76 // Paints the bitmap from the renderer onto the backing store without | 77 // Paints the bitmap from the renderer onto the backing store without |
(...skipping 21 matching lines...) Expand all Loading... |
98 XID pixmap_; | 99 XID pixmap_; |
99 // This is the RENDER picture pointing at |pixmap_|. | 100 // This is the RENDER picture pointing at |pixmap_|. |
100 XID picture_; | 101 XID picture_; |
101 // This is a default graphic context, used in XCopyArea | 102 // This is a default graphic context, used in XCopyArea |
102 void* pixmap_gc_; | 103 void* pixmap_gc_; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(BackingStoreGtk); | 105 DISALLOW_COPY_AND_ASSIGN(BackingStoreGtk); |
105 }; | 106 }; |
106 | 107 |
107 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ | 108 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ |
OLD | NEW |