| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 bitmap, | 
| 55       const gfx::Rect& bitmap_rect, | 55       const gfx::Rect& bitmap_rect, | 
| 56       const std::vector<gfx::Rect>& copy_rects, | 56       const std::vector<gfx::Rect>& copy_rects); | 
| 57       bool* painted_synchronously); |  | 
| 58   virtual bool CopyFromBackingStore(const gfx::Rect& rect, | 57   virtual bool CopyFromBackingStore(const gfx::Rect& rect, | 
| 59                                     skia::PlatformCanvas* output); | 58                                     skia::PlatformCanvas* output); | 
| 60   virtual void ScrollBackingStore(int dx, int dy, | 59   virtual void ScrollBackingStore(int dx, int dy, | 
| 61                                   const gfx::Rect& clip_rect, | 60                                   const gfx::Rect& clip_rect, | 
| 62                                   const gfx::Size& view_size); | 61                                   const gfx::Size& view_size); | 
| 63 | 62 | 
| 64  private: | 63  private: | 
| 65   // Paints the bitmap from the renderer onto the backing store without | 64   // Paints the bitmap from the renderer onto the backing store without | 
| 66   // using Xrender to composite the pixmaps. | 65   // using Xrender to composite the pixmaps. | 
| 67   void PaintRectWithoutXrender(TransportDIB* bitmap, | 66   void PaintRectWithoutXrender(TransportDIB* bitmap, | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 87   XID pixmap_; | 86   XID pixmap_; | 
| 88   // This is the RENDER picture pointing at |pixmap_|. | 87   // This is the RENDER picture pointing at |pixmap_|. | 
| 89   XID picture_; | 88   XID picture_; | 
| 90   // This is a default graphic context, used in XCopyArea | 89   // This is a default graphic context, used in XCopyArea | 
| 91   void* pixmap_gc_; | 90   void* pixmap_gc_; | 
| 92 | 91 | 
| 93   DISALLOW_COPY_AND_ASSIGN(BackingStoreX); | 92   DISALLOW_COPY_AND_ASSIGN(BackingStoreX); | 
| 94 }; | 93 }; | 
| 95 | 94 | 
| 96 #endif  // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ | 95 #endif  // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_X_H_ | 
| OLD | NEW | 
|---|