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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
11 #include "content/browser/renderer_host/backing_store.h" 11 #include "content/browser/renderer_host/backing_store.h"
12 12
13 class BackingStoreMac : public BackingStore { 13 class BackingStoreMac : public BackingStore {
14 public: 14 public:
15 BackingStoreMac(RenderWidgetHost* widget, const gfx::Size& size); 15 BackingStoreMac(content::RenderWidgetHost* widget, const gfx::Size& size);
16 virtual ~BackingStoreMac(); 16 virtual ~BackingStoreMac();
17 17
18 // A CGLayer that stores the contents of the backing store, cached in GPU 18 // A CGLayer that stores the contents of the backing store, cached in GPU
19 // memory if possible. 19 // memory if possible.
20 CGLayerRef cg_layer() { return cg_layer_; } 20 CGLayerRef cg_layer() { return cg_layer_; }
21 21
22 // A CGBitmapContext that stores the contents of the backing store if the 22 // A CGBitmapContext that stores the contents of the backing store if the
23 // corresponding Cocoa view has not been inserted into an NSWindow yet. 23 // corresponding Cocoa view has not been inserted into an NSWindow yet.
24 CGContextRef cg_bitmap() { return cg_bitmap_; } 24 CGContextRef cg_bitmap() { return cg_bitmap_; }
25 25
(...skipping 26 matching lines...) Expand all
52 // result. 52 // result.
53 CGContextRef CreateCGBitmapContext(); 53 CGContextRef CreateCGBitmapContext();
54 54
55 base::mac::ScopedCFTypeRef<CGContextRef> cg_bitmap_; 55 base::mac::ScopedCFTypeRef<CGContextRef> cg_bitmap_;
56 base::mac::ScopedCFTypeRef<CGLayerRef> cg_layer_; 56 base::mac::ScopedCFTypeRef<CGLayerRef> cg_layer_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(BackingStoreMac); 58 DISALLOW_COPY_AND_ASSIGN(BackingStoreMac);
59 }; 59 };
60 60
61 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_ 61 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_gtk.cc ('k') | content/browser/renderer_host/backing_store_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698