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

Side by Side Diff: skia/ext/bitmap_platform_device_data.h

Issue 6732027: Replace include with forward declarations.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 SKIA_EXT_BITMAP_PLATFORM_DEVICE_DATA_H_ 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_DATA_H_
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_DATA_H_ 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_DATA_H_
7 7
8 #include "skia/ext/bitmap_platform_device.h" 8 #include "skia/ext/bitmap_platform_device.h"
9 9
10 namespace skia { 10 namespace skia {
(...skipping 25 matching lines...) Expand all
36 #endif 36 #endif
37 37
38 #if defined(WIN32) 38 #if defined(WIN32)
39 // Create/destroy hdc_, which is the memory DC for our bitmap data. 39 // Create/destroy hdc_, which is the memory DC for our bitmap data.
40 HDC GetBitmapDC(); 40 HDC GetBitmapDC();
41 void ReleaseBitmapDC(); 41 void ReleaseBitmapDC();
42 bool IsBitmapDCCreated() const; 42 bool IsBitmapDCCreated() const;
43 #endif 43 #endif
44 44
45 #if defined(__APPLE__) 45 #if defined(__APPLE__)
46 void ReleaseBitmapContext() { 46 void ReleaseBitmapContext();
47 SkASSERT(bitmap_context_);
48 CGContextRelease(bitmap_context_);
49 bitmap_context_ = NULL;
50 }
51 #endif // defined(__APPLE__) 47 #endif // defined(__APPLE__)
52 48
53 // Sets the transform and clip operations. This will not update the CGContext, 49 // Sets the transform and clip operations. This will not update the CGContext,
54 // but will mark the config as dirty. The next call of LoadConfig will 50 // but will mark the config as dirty. The next call of LoadConfig will
55 // pick up these changes. 51 // pick up these changes.
56 void SetMatrixClip(const SkMatrix& transform, const SkRegion& region); 52 void SetMatrixClip(const SkMatrix& transform, const SkRegion& region);
57 53
58 // Loads the current transform and clip into the context. Can be called even 54 // Loads the current transform and clip into the context. Can be called even
59 // when |bitmap_context_| is NULL (will be a NOP). 55 // when |bitmap_context_| is NULL (will be a NOP).
60 void LoadConfig(); 56 void LoadConfig();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 SkRegion clip_region_; 93 SkRegion clip_region_;
98 94
99 // Disallow copy & assign. 95 // Disallow copy & assign.
100 BitmapPlatformDeviceData(const BitmapPlatformDeviceData&); 96 BitmapPlatformDeviceData(const BitmapPlatformDeviceData&);
101 BitmapPlatformDeviceData& operator=(const BitmapPlatformDeviceData&); 97 BitmapPlatformDeviceData& operator=(const BitmapPlatformDeviceData&);
102 }; 98 };
103 99
104 } // namespace skia 100 } // namespace skia
105 101
106 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_DATA_H_ 102 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698