| OLD | NEW |
| 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 "chrome/browser/renderer_host/backing_store.h" | 5 #include "chrome/browser/renderer_host/backing_store.h" |
| 6 | 6 |
| 7 #include "base/gfx/gdi_util.h" | 7 #include "base/gfx/gdi_util.h" |
| 8 #include "chrome/browser/renderer_host/render_widget_host.h" | 8 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 9 #include "chrome/common/win_util.h" | 9 #include "chrome/common/win_util.h" |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 gfx::CreateBitmapHeaderWithColorDepth(width, height, color_depth, &hdr); | 113 gfx::CreateBitmapHeaderWithColorDepth(width, height, color_depth, &hdr); |
| 114 } else { | 114 } else { |
| 115 gfx::CreateBitmapHeader(width, height, &hdr); | 115 gfx::CreateBitmapHeader(width, height, &hdr); |
| 116 } | 116 } |
| 117 void* data = NULL; | 117 void* data = NULL; |
| 118 HANDLE dib = | 118 HANDLE dib = |
| 119 CreateDIBSection(hdc_, reinterpret_cast<BITMAPINFO*>(&hdr), | 119 CreateDIBSection(hdc_, reinterpret_cast<BITMAPINFO*>(&hdr), |
| 120 0, &data, section, 0); | 120 0, &data, section, 0); |
| 121 return dib; | 121 return dib; |
| 122 } | 122 } |
| OLD | NEW |