OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/x11_util.h" | 9 #include "app/x11_util.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 #if defined(TOOLKIT_GTK) | 45 #if defined(TOOLKIT_GTK) |
46 // Paint the backing store into the target's |dest_rect|. | 46 // Paint the backing store into the target's |dest_rect|. |
47 void PaintToRect(const gfx::Rect& dest_rect, GdkDrawable* target); | 47 void PaintToRect(const gfx::Rect& dest_rect, GdkDrawable* target); |
48 #endif | 48 #endif |
49 | 49 |
50 // BackingStore implementation. | 50 // BackingStore implementation. |
51 virtual size_t MemorySize(); | 51 virtual size_t MemorySize(); |
52 virtual void PaintToBackingStore( | 52 virtual void PaintToBackingStore( |
53 RenderProcessHost* process, | 53 RenderProcessHost* process, |
54 TransportDIB::Id bitmap, | 54 TransportDIB::Id dib_id, |
| 55 TransportDIB::Handle dib_handle, |
55 const gfx::Rect& bitmap_rect, | 56 const gfx::Rect& bitmap_rect, |
56 const std::vector<gfx::Rect>& copy_rects, | 57 const std::vector<gfx::Rect>& copy_rects, |
57 bool* painted_synchronously); | 58 bool* painted_synchronously); |
58 virtual bool CopyFromBackingStore(const gfx::Rect& rect, | 59 virtual bool CopyFromBackingStore(const gfx::Rect& rect, |
59 skia::PlatformCanvas* output); | 60 skia::PlatformCanvas* output); |
60 virtual void ScrollBackingStore(int dx, int dy, | 61 virtual void ScrollBackingStore(int dx, int dy, |
61 const gfx::Rect& clip_rect, | 62 const gfx::Rect& clip_rect, |
62 const gfx::Size& view_size); | 63 const gfx::Size& view_size); |
63 | 64 |
64 private: | 65 private: |
(...skipping 22 matching lines...) Expand all Loading... |
87 XID pixmap_; | 88 XID pixmap_; |
88 // This is the RENDER picture pointing at |pixmap_|. | 89 // This is the RENDER picture pointing at |pixmap_|. |
89 XID picture_; | 90 XID picture_; |
90 // This is a default graphic context, used in XCopyArea | 91 // This is a default graphic context, used in XCopyArea |
91 void* pixmap_gc_; | 92 void* pixmap_gc_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(BackingStoreX); | 94 DISALLOW_COPY_AND_ASSIGN(BackingStoreX); |
94 }; | 95 }; |
95 | 96 |
96 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ | 97 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ |
OLD | NEW |