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

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

Issue 14110: Move the "platform" wrappers in skia/ext to the skia namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_win.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BITMAP_PLATFORM_DEVICE_WIN_H_ 5 #ifndef SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
6 #define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ 6 #define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
7 7
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "skia/ext/platform_device_win.h" 9 #include "skia/ext/platform_device_win.h"
10 10
11 namespace gfx { 11 namespace skia {
12 12
13 // A device is basically a wrapper around SkBitmap that provides a surface for 13 // A device is basically a wrapper around SkBitmap that provides a surface for
14 // SkCanvas to draw into. Our device provides a surface Windows can also write 14 // SkCanvas to draw into. Our device provides a surface Windows can also write
15 // to. BitmapPlatformDeviceWin creates a bitmap using CreateDIBSection() in a 15 // to. BitmapPlatformDeviceWin creates a bitmap using CreateDIBSection() in a
16 // format that Skia supports and can then use this to draw ClearType into, etc. 16 // format that Skia supports and can then use this to draw ClearType into, etc.
17 // This pixel data is provided to the bitmap that the device contains so that it 17 // This pixel data is provided to the bitmap that the device contains so that it
18 // can be shared. 18 // can be shared.
19 // 19 //
20 // The device owns the pixel data, when the device goes away, the pixel data 20 // The device owns the pixel data, when the device goes away, the pixel data
21 // also becomes invalid. THIS IS DIFFERENT THAN NORMAL SKIA which uses 21 // also becomes invalid. THIS IS DIFFERENT THAN NORMAL SKIA which uses
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 template<adjustAlpha adjustor> 98 template<adjustAlpha adjustor>
99 void processPixels(int x, 99 void processPixels(int x,
100 int y, 100 int y,
101 int width, 101 int width,
102 int height); 102 int height);
103 103
104 // Data associated with this device, guaranteed non-null. 104 // Data associated with this device, guaranteed non-null.
105 scoped_refptr<BitmapPlatformDeviceWinData> data_; 105 scoped_refptr<BitmapPlatformDeviceWinData> data_;
106 }; 106 };
107 107
108 } // namespace gfx 108 } // namespace skia
109 109
110 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ 110 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
111 111
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698