| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |