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

Side by Side Diff: ui/gfx/gdi_util.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows maybe Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/gfx/gdi_util.h" 5 #include "ui/gfx/gdi_util.h"
6 6
7 #include <algorithm>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 11
10 namespace { 12 namespace {
11 13
12 void CreateBitmapHeaderWithColorDepth(LONG width, 14 void CreateBitmapHeaderWithColorDepth(LONG width,
13 LONG height, 15 LONG height,
14 WORD color_depth, 16 WORD color_depth,
15 BITMAPINFOHEADER* hdr) { 17 BITMAPINFOHEADER* hdr) {
16 // These values are shared with gfx::PlatformDevice 18 // These values are shared with gfx::PlatformDevice
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } else { 130 } else {
129 rv = ::StretchDIBits(hdc, 131 rv = ::StretchDIBits(hdc,
130 dest_x, dest_y, dest_w, dest_h, 132 dest_x, dest_y, dest_w, dest_h,
131 src_x, bottom_up_src_y, src_w, src_h, 133 src_x, bottom_up_src_y, src_w, src_h,
132 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY); 134 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY);
133 } 135 }
134 DCHECK(rv != GDI_ERROR); 136 DCHECK(rv != GDI_ERROR);
135 } 137 }
136 138
137 } // namespace gfx 139 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698