| 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 10 matching lines...) Expand all Loading... |
| 21 } // namespace gfx | 21 } // namespace gfx |
| 22 | 22 |
| 23 | 23 |
| 24 typedef struct _GdkDrawable GdkDrawable; | 24 typedef struct _GdkDrawable GdkDrawable; |
| 25 | 25 |
| 26 class CONTENT_EXPORT BackingStoreGtk : public BackingStore { | 26 class CONTENT_EXPORT BackingStoreGtk : public BackingStore { |
| 27 public: | 27 public: |
| 28 // Create a backing store on the X server. The visual is an Xlib Visual | 28 // Create a backing store on the X server. The visual is an Xlib Visual |
| 29 // describing the format of the target window and the depth is the color | 29 // describing the format of the target window and the depth is the color |
| 30 // depth of the X window which will be drawn into. | 30 // depth of the X window which will be drawn into. |
| 31 BackingStoreGtk(RenderWidgetHost* widget, | 31 BackingStoreGtk(content::RenderWidgetHost* widget, |
| 32 const gfx::Size& size, | 32 const gfx::Size& size, |
| 33 void* visual, | 33 void* visual, |
| 34 int depth); | 34 int depth); |
| 35 | 35 |
| 36 // This is for unittesting only. An object constructed using this constructor | 36 // This is for unittesting only. An object constructed using this constructor |
| 37 // will silently ignore all paints | 37 // will silently ignore all paints |
| 38 BackingStoreGtk(RenderWidgetHost* widget, const gfx::Size& size); | 38 BackingStoreGtk(content::RenderWidgetHost* widget, const gfx::Size& size); |
| 39 | 39 |
| 40 virtual ~BackingStoreGtk(); | 40 virtual ~BackingStoreGtk(); |
| 41 | 41 |
| 42 Display* display() const { return display_; } | 42 Display* display() const { return display_; } |
| 43 XID root_window() const { return root_window_; } | 43 XID root_window() const { return root_window_; } |
| 44 | 44 |
| 45 // Copy from the server-side backing store to the target window | 45 // Copy from the server-side backing store to the target window |
| 46 // origin: the destination rectangle origin | 46 // origin: the destination rectangle origin |
| 47 // damage: the area to copy | 47 // damage: the area to copy |
| 48 // target: the X id of the target window | 48 // target: the X id of the target window |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 XID pixmap_; | 98 XID pixmap_; |
| 99 // This is the RENDER picture pointing at |pixmap_|. | 99 // This is the RENDER picture pointing at |pixmap_|. |
| 100 XID picture_; | 100 XID picture_; |
| 101 // This is a default graphic context, used in XCopyArea | 101 // This is a default graphic context, used in XCopyArea |
| 102 void* pixmap_gc_; | 102 void* pixmap_gc_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(BackingStoreGtk); | 104 DISALLOW_COPY_AND_ASSIGN(BackingStoreGtk); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ | 107 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ |
| OLD | NEW |