summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/backing_store.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 19:02:02 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 19:02:02 +0000
commitcccb18d27e0243f20539d4450c0d21ee2ab2a200 (patch)
tree088cfdec74d426be2806236038bac3add49eed3b /chrome/browser/renderer_host/backing_store.h
parent0f88d3274bd3c093744a2de1c5d8e9f5f2643a77 (diff)
downloadchromium_src-cccb18d27e0243f20539d4450c0d21ee2ab2a200.zip
chromium_src-cccb18d27e0243f20539d4450c0d21ee2ab2a200.tar.gz
chromium_src-cccb18d27e0243f20539d4450c0d21ee2ab2a200.tar.bz2
Back out r31572, reinstating r31563:
Always create BackingStore CGLayers using the owner view's window's context as a reference. Reorganize CGLayer and CGBitmapContext creation into common functions. BUG=26989 TEST=Still paints? Good. Review URL: http://codereview.chromium.org/384011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/backing_store.h')
-rw-r--r--chrome/browser/renderer_host/backing_store.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/backing_store.h b/chrome/browser/renderer_host/backing_store.h
index 6278884..8130498 100644
--- a/chrome/browser/renderer_host/backing_store.h
+++ b/chrome/browser/renderer_host/backing_store.h
@@ -105,6 +105,19 @@ class BackingStore {
const gfx::Size& view_size);
private:
+#if defined(OS_MACOSX)
+ // Creates a CGLayer associated with its owner view's window's graphics
+ // context, sized properly for the backing store. Returns NULL if the owner
+ // is not in a window with a CGContext. cg_layer_ is assigned this method's
+ // result.
+ CGLayerRef CreateCGLayer();
+
+ // Creates a CGBitmapContext sized properly for the backing store. The
+ // owner view need not be in a window. cg_bitmap_ is assigned this method's
+ // result.
+ CGContextRef CreateCGBitmapContext();
+#endif
+
// The owner of this backing store.
RenderWidgetHost* render_widget_host_;