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

Side by Side Diff: skia/ext/vector_device.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/skia_utils_win.cc ('k') | skia/skia.vcproj » ('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/vector_device.h" 5 #include "skia/ext/vector_device.h"
6 6
7 #include "base/gfx/gdi_util.h" 7 #include "base/gfx/gdi_util.h"
8 #include "base/gfx/skia_utils.h"
9 #include "base/logging.h" 8 #include "base/logging.h"
10 #include "base/scoped_handle.h" 9 #include "base/scoped_handle.h"
10 #include "skia/ext/skia_utils_win.h"
11 #include "SkUtils.h"
11 12
12 #include "SkUtils.h" 13 // TOOD(brettw) remove this when this file is changed over to namespace skia.
14 using namespace skia;
13 15
14 namespace gfx { 16 namespace gfx {
15 17
16 VectorDevice* VectorDevice::create(HDC dc, int width, int height) { 18 VectorDevice* VectorDevice::create(HDC dc, int width, int height) {
17 InitializeDC(dc); 19 InitializeDC(dc);
18 20
19 // Link the SkBitmap to the current selected bitmap in the device context. 21 // Link the SkBitmap to the current selected bitmap in the device context.
20 SkBitmap bitmap; 22 SkBitmap bitmap;
21 HGDIOBJ selected_bitmap = GetCurrentObject(dc, OBJ_BITMAP); 23 HGDIOBJ selected_bitmap = GetCurrentObject(dc, OBJ_BITMAP);
22 bool succeeded = false; 24 bool succeeded = false;
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 reinterpret_cast<const BITMAPINFO*>(&hdr), 605 reinterpret_cast<const BITMAPINFO*>(&hdr),
604 DIB_RGB_COLORS, 606 DIB_RGB_COLORS,
605 SRCCOPY); 607 SRCCOPY);
606 DCHECK(result); 608 DCHECK(result);
607 } 609 }
608 Cleanup(); 610 Cleanup();
609 } 611 }
610 612
611 } // namespace gfx 613 } // namespace gfx
612 614
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_win.cc ('k') | skia/skia.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698