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

Side by Side Diff: chrome/browser/renderer_host/backing_store.h

Issue 3834003: On Windows, create a new TransportDIB::Handle struct which includes the file (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 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
OLDNEW
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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 // gives the location of bitmap, and copy_rects specifies the subregion(s) of 41 // gives the location of bitmap, and copy_rects specifies the subregion(s) of
42 // the backingstore to be painted from the bitmap. 42 // the backingstore to be painted from the bitmap.
43 // 43 //
44 // The value placed into |*painted_synchronously| indicates if the paint was 44 // The value placed into |*painted_synchronously| indicates if the paint was
45 // completed synchronously and the TransportDIB can be freed. False means that 45 // completed synchronously and the TransportDIB can be freed. False means that
46 // the backing store may still be using the transport DIB and it will manage 46 // the backing store may still be using the transport DIB and it will manage
47 // notifying the RenderWidgetHost that it's done with it via 47 // notifying the RenderWidgetHost that it's done with it via
48 // DonePaintingToBackingStore(). 48 // DonePaintingToBackingStore().
49 virtual void PaintToBackingStore( 49 virtual void PaintToBackingStore(
50 RenderProcessHost* process, 50 RenderProcessHost* process,
51 TransportDIB::Id bitmap, 51 TransportDIB::Id dib_id,
52 TransportDIB::Handle dib_handle,
52 const gfx::Rect& bitmap_rect, 53 const gfx::Rect& bitmap_rect,
53 const std::vector<gfx::Rect>& copy_rects, 54 const std::vector<gfx::Rect>& copy_rects,
54 bool* painted_synchronously) = 0; 55 bool* painted_synchronously) = 0;
55 56
56 // Extracts the gives subset of the backing store and copies it to the given 57 // Extracts the gives subset of the backing store and copies it to the given
57 // PlatformCanvas. The PlatformCanvas should not be initialized. This function 58 // PlatformCanvas. The PlatformCanvas should not be initialized. This function
58 // will call initialize() with the correct size. The return value indicates 59 // will call initialize() with the correct size. The return value indicates
59 // success. 60 // success.
60 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 61 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
61 skia::PlatformCanvas* output) = 0; 62 skia::PlatformCanvas* output) = 0;
(...skipping 11 matching lines...) Expand all
73 // The owner of this backing store. 74 // The owner of this backing store.
74 RenderWidgetHost* render_widget_host_; 75 RenderWidgetHost* render_widget_host_;
75 76
76 // The size of the backing store. 77 // The size of the backing store.
77 gfx::Size size_; 78 gfx::Size size_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(BackingStore); 80 DISALLOW_COPY_AND_ASSIGN(BackingStore);
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 83 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698