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

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

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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_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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/mac/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "content/browser/renderer_host/backing_store.h" 10 #include "content/browser/renderer_host/backing_store.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // context, sized properly for the backing store. Returns NULL if the owner 55 // context, sized properly for the backing store. Returns NULL if the owner
56 // is not in a window with a CGContext. cg_layer_ is assigned this method's 56 // is not in a window with a CGContext. cg_layer_ is assigned this method's
57 // result. 57 // result.
58 CGLayerRef CreateCGLayer(); 58 CGLayerRef CreateCGLayer();
59 59
60 // Creates a CGBitmapContext sized properly for the backing store. The 60 // Creates a CGBitmapContext sized properly for the backing store. The
61 // owner view need not be in a window. cg_bitmap_ is assigned this method's 61 // owner view need not be in a window. cg_bitmap_ is assigned this method's
62 // result. 62 // result.
63 CGContextRef CreateCGBitmapContext(); 63 CGContextRef CreateCGBitmapContext();
64 64
65 base::mac::ScopedCFTypeRef<CGContextRef> cg_bitmap_; 65 base::ScopedCFTypeRef<CGContextRef> cg_bitmap_;
66 base::mac::ScopedCFTypeRef<CGLayerRef> cg_layer_; 66 base::ScopedCFTypeRef<CGLayerRef> cg_layer_;
67 67
68 // Number of physical pixels per view unit. This is 1 or 2 in practice. 68 // Number of physical pixels per view unit. This is 1 or 2 in practice.
69 float device_scale_factor_; 69 float device_scale_factor_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(BackingStoreMac); 71 DISALLOW_COPY_AND_ASSIGN(BackingStoreMac);
72 }; 72 };
73 73
74 } // namespace content 74 } // namespace content
75 75
76 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_ 76 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/power_save_blocker_mac.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