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

Side by Side Diff: skia/ext/platform_device_win.cc

Issue 12842: Move convolver, image_operations, and skia_utils from base/gfx to skia/ext.... (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/image_operations_unittest.cc ('k') | skia/ext/skia_utils.h » ('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 #include "skia/ext/platform_device_win.h" 5 #include "skia/ext/platform_device_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/gfx/skia_utils.h"
9 #include "SkMatrix.h" 8 #include "SkMatrix.h"
10 #include "SkPath.h" 9 #include "SkPath.h"
11 #include "SkRegion.h" 10 #include "SkRegion.h"
12 #include "SkUtils.h" 11 #include "SkUtils.h"
12 #include "skia/ext/skia_utils_win.h"
13
14 // TODO(brettw) remove this when this file is converted to namespace skia.
15 using namespace skia;
13 16
14 namespace gfx { 17 namespace gfx {
15 18
16 PlatformDeviceWin::PlatformDeviceWin(const SkBitmap& bitmap) 19 PlatformDeviceWin::PlatformDeviceWin(const SkBitmap& bitmap)
17 : SkDevice(bitmap) { 20 : SkDevice(bitmap) {
18 } 21 }
19 22
20 // static 23 // static
21 void PlatformDeviceWin::InitializeDC(HDC context) { 24 void PlatformDeviceWin::InitializeDC(HDC context) {
22 // Enables world transformation. 25 // Enables world transformation.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 hrgn = PathToRegion(context); 223 hrgn = PathToRegion(context);
221 } 224 }
222 int result = SelectClipRgn(context, hrgn); 225 int result = SelectClipRgn(context, hrgn);
223 DCHECK_NE(result, ERROR); 226 DCHECK_NE(result, ERROR);
224 result = DeleteObject(hrgn); 227 result = DeleteObject(hrgn);
225 DCHECK_NE(result, 0); 228 DCHECK_NE(result, 0);
226 } 229 }
227 230
228 } // namespace gfx 231 } // namespace gfx
229 232
OLDNEW
« no previous file with comments | « skia/ext/image_operations_unittest.cc ('k') | skia/ext/skia_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698