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

Side by Side Diff: content/browser/compositor/software_output_device_win.cc

Issue 1432443004: Remove SkDevice and SkBaseDevice outside skia/ext/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698