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

Side by Side Diff: content/browser/renderer_host/backing_store_win.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_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 virtual size_t MemorySize() OVERRIDE; 27 virtual size_t MemorySize() OVERRIDE;
28 virtual void PaintToBackingStore( 28 virtual void PaintToBackingStore(
29 RenderProcessHost* process, 29 RenderProcessHost* process,
30 TransportDIB::Id bitmap, 30 TransportDIB::Id bitmap,
31 const gfx::Rect& bitmap_rect, 31 const gfx::Rect& bitmap_rect,
32 const std::vector<gfx::Rect>& copy_rects, 32 const std::vector<gfx::Rect>& copy_rects,
33 float scale_factor, 33 float scale_factor,
34 const base::Closure& completion_callback, 34 const base::Closure& completion_callback,
35 bool* scheduled_completion_callback) OVERRIDE; 35 bool* scheduled_completion_callback) OVERRIDE;
36 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 36 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
37 skia::PlatformCanvas* output) OVERRIDE; 37 skia::PlatformBitmap* output) OVERRIDE;
38 virtual void ScrollBackingStore(int dx, int dy, 38 virtual void ScrollBackingStore(int dx, int dy,
39 const gfx::Rect& clip_rect, 39 const gfx::Rect& clip_rect,
40 const gfx::Size& view_size) OVERRIDE; 40 const gfx::Size& view_size) OVERRIDE;
41 41
42 private: 42 private:
43 // The backing store dc. 43 // The backing store dc.
44 HDC hdc_; 44 HDC hdc_;
45 45
46 // Handle to the backing store dib. 46 // Handle to the backing store dib.
47 HANDLE backing_store_dib_; 47 HANDLE backing_store_dib_;
48 48
49 // Handle to the original bitmap in the dc. 49 // Handle to the original bitmap in the dc.
50 HANDLE original_bitmap_; 50 HANDLE original_bitmap_;
51 51
52 // Number of bits per pixel of the screen. 52 // Number of bits per pixel of the screen.
53 int color_depth_; 53 int color_depth_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin); 55 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin);
56 }; 56 };
57 57
58 } // namespace content 58 } // namespace content
59 59
60 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ 60 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_mac.mm ('k') | content/browser/renderer_host/backing_store_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698