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

Unified Diff: chrome/browser/renderer_host/backing_store.h

Issue 175027: Update BackingStore to handle the case where our Cocoa view has... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/backing_store.h
===================================================================
--- chrome/browser/renderer_host/backing_store.h (revision 24883)
+++ chrome/browser/renderer_host/backing_store.h (working copy)
@@ -64,6 +64,10 @@
// A CGLayer that stores the contents of the backing store, cached in GPU
// memory if possible.
CGLayerRef cg_layer() { return cg_layer_; }
+ // A CGBitmapContext that stores the contents of the backing store if the
+ // corresponding Cocoa view has not been inserted into an NSWindow yet.
+ CGContextRef cg_bitmap() { return cg_bitmap_; }
+
// Paint the layer into a graphics context--if the target is a window,
// this should be a GPU->GPU copy (and therefore very fast).
void PaintToRect(const gfx::Rect& dest_rect, CGContextRef target);
@@ -118,6 +122,7 @@
// Number of bits per pixel of the screen.
int color_depth_;
#elif defined(OS_MACOSX)
+ scoped_cftyperef<CGContextRef> cg_bitmap_;
scoped_cftyperef<CGLayerRef> cg_layer_;
#elif defined(OS_LINUX)
// Paints the bitmap from the renderer onto the backing store without

Powered by Google App Engine
This is Rietveld 408576698