OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/compositor/software_output_device_win.h" | 5 #include "content/browser/compositor/software_output_device_win.h" |
6 | 6 |
7 #include "base/memory/shared_memory.h" | 7 #include "base/memory/shared_memory.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | |
11 #include "third_party/skia/include/core/SkDevice.h" | |
12 #include "ui/compositor/compositor.h" | 10 #include "ui/compositor/compositor.h" |
13 #include "ui/gfx/gdi_util.h" | 11 #include "ui/gfx/gdi_util.h" |
14 #include "ui/gfx/skia_util.h" | 12 #include "ui/gfx/skia_util.h" |
15 | 13 |
16 namespace content { | 14 namespace content { |
17 | 15 |
18 OutputDeviceBacking::OutputDeviceBacking() : created_byte_size_(0) { | 16 OutputDeviceBacking::OutputDeviceBacking() : created_byte_size_(0) { |
19 } | 17 } |
20 | 18 |
21 OutputDeviceBacking::~OutputDeviceBacking() { | 19 OutputDeviceBacking::~OutputDeviceBacking() { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 162 } |
165 } | 163 } |
166 | 164 |
167 void SoftwareOutputDeviceWin::ReleaseContents() { | 165 void SoftwareOutputDeviceWin::ReleaseContents() { |
168 DCHECK(!contents_ || contents_->unique()); | 166 DCHECK(!contents_ || contents_->unique()); |
169 DCHECK(!in_paint_); | 167 DCHECK(!in_paint_); |
170 contents_.clear(); | 168 contents_.clear(); |
171 } | 169 } |
172 | 170 |
173 } // namespace content | 171 } // namespace content |
OLD | NEW |