Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Side by Side Diff: content/browser/renderer_host/backing_store_gtk.h

Issue 11031055: Introduce PlatformBitmap, which is a minimal helper class that wraps an SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual size_t MemorySize() OVERRIDE; 61 virtual size_t MemorySize() OVERRIDE;
62 virtual void PaintToBackingStore( 62 virtual void PaintToBackingStore(
63 RenderProcessHost* process, 63 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 float scale_factor,
68 const base::Closure& completion_callback, 68 const base::Closure& completion_callback,
69 bool* scheduled_completion_callback) OVERRIDE; 69 bool* scheduled_completion_callback) OVERRIDE;
70 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 70 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
71 skia::PlatformCanvas* output) OVERRIDE; 71 skia::PlatformBitmap* output) OVERRIDE;
72 virtual void ScrollBackingStore(int dx, int dy, 72 virtual void ScrollBackingStore(int dx, int dy,
73 const gfx::Rect& clip_rect, 73 const gfx::Rect& clip_rect,
74 const gfx::Size& view_size) OVERRIDE; 74 const gfx::Size& view_size) OVERRIDE;
75 75
76 private: 76 private:
77 // Paints the bitmap from the renderer onto the backing store without 77 // Paints the bitmap from the renderer onto the backing store without
78 // using Xrender to composite the pixmaps. 78 // using Xrender to composite the pixmaps.
79 void PaintRectWithoutXrender(TransportDIB* bitmap, 79 void PaintRectWithoutXrender(TransportDIB* bitmap,
80 const gfx::Rect& bitmap_rect, 80 const gfx::Rect& bitmap_rect,
81 const std::vector<gfx::Rect>& copy_rects); 81 const std::vector<gfx::Rect>& copy_rects);
(...skipping 19 matching lines...) Expand all
101 XID picture_; 101 XID picture_;
102 // This is a default graphic context, used in XCopyArea 102 // This is a default graphic context, used in XCopyArea
103 void* pixmap_gc_; 103 void* pixmap_gc_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(BackingStoreGtk); 105 DISALLOW_COPY_AND_ASSIGN(BackingStoreGtk);
106 }; 106 };
107 107
108 } // namespace content 108 } // namespace content
109 109
110 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_ 110 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_aura.cc ('k') | content/browser/renderer_host/backing_store_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698