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

Side by Side Diff: printing/image_win.cc

Issue 5270010: Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | « printing/image_mac.cc ('k') | remoting/base/codec_test.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 #include "printing/image.h" 5 #include "printing/image.h"
6 6
7 #include "base/logging.h"
8 #include "gfx/gdi_util.h" // EMF support 7 #include "gfx/gdi_util.h" // EMF support
9 #include "gfx/rect.h" 8 #include "gfx/rect.h"
10 #include "skia/ext/platform_device.h" 9 #include "skia/ext/platform_device.h"
11 10
12 namespace { 11 namespace {
13 12
14 // A simple class which temporarily overrides system settings. 13 // A simple class which temporarily overrides system settings.
15 // The bitmap image rendered via the PlayEnhMetaFile() function depends on 14 // The bitmap image rendered via the PlayEnhMetaFile() function depends on
16 // some system settings. 15 // some system settings.
17 // As a workaround for such dependency, this class saves the system settings 16 // As a workaround for such dependency, this class saves the system settings
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 data_.resize(bytes); 79 data_.resize(bytes);
81 memcpy(&*data_.begin(), bits, bytes); 80 memcpy(&*data_.begin(), bits, bytes);
82 81
83 DeleteDC(hdc); 82 DeleteDC(hdc);
84 DeleteObject(bitmap); 83 DeleteObject(bitmap);
85 84
86 return success; 85 return success;
87 } 86 }
88 87
89 } // namespace printing 88 } // namespace printing
OLDNEW
« no previous file with comments | « printing/image_mac.cc ('k') | remoting/base/codec_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698