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

Side by Side Diff: content/renderer/pepper/ppb_image_data_impl.cc

Issue 2637453002: Remove unused SkDevice.h include in ppb_image_data_impl.cc (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | 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) 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 "content/renderer/pepper/ppb_image_data_impl.h" 5 #include "content/renderer/pepper/ppb_image_data_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "content/common/pepper_file_util.h" 13 #include "content/common/pepper_file_util.h"
14 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
15 #include "content/renderer/render_thread_impl.h" 15 #include "content/renderer/render_thread_impl.h"
16 #include "ppapi/c/pp_errors.h" 16 #include "ppapi/c/pp_errors.h"
17 #include "ppapi/c/pp_instance.h" 17 #include "ppapi/c/pp_instance.h"
18 #include "ppapi/c/pp_resource.h" 18 #include "ppapi/c/pp_resource.h"
19 #include "ppapi/c/ppb_image_data.h" 19 #include "ppapi/c/ppb_image_data.h"
20 #include "ppapi/thunk/thunk.h" 20 #include "ppapi/thunk/thunk.h"
21 #include "skia/ext/platform_canvas.h" 21 #include "skia/ext/platform_canvas.h"
22 #include "third_party/skia/include/core/SkCanvas.h" 22 #include "third_party/skia/include/core/SkCanvas.h"
23 #include "third_party/skia/include/core/SkColorPriv.h" 23 #include "third_party/skia/include/core/SkColorPriv.h"
24 #include "third_party/skia/include/core/SkDevice.h"
25 #include "third_party/skia/include/core/SkPixmap.h" 24 #include "third_party/skia/include/core/SkPixmap.h"
26 #include "ui/surface/transport_dib.h" 25 #include "ui/surface/transport_dib.h"
27 26
28 using ppapi::thunk::PPB_ImageData_API; 27 using ppapi::thunk::PPB_ImageData_API;
29 28
30 namespace content { 29 namespace content {
31 30
32 PPB_ImageData_Impl::PPB_ImageData_Impl(PP_Instance instance, 31 PPB_ImageData_Impl::PPB_ImageData_Impl(PP_Instance instance,
33 PPB_ImageData_Shared::ImageDataType type) 32 PPB_ImageData_Shared::ImageDataType type)
34 : Resource(ppapi::OBJECT_IS_IMPL, instance), 33 : Resource(ppapi::OBJECT_IS_IMPL, instance),
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return skia_canvas_.get(); 265 return skia_canvas_.get();
267 } 266 }
268 267
269 SkBitmap ImageDataSimpleBackend::GetMappedBitmap() const { 268 SkBitmap ImageDataSimpleBackend::GetMappedBitmap() const {
270 if (!IsMapped()) 269 if (!IsMapped())
271 return SkBitmap(); 270 return SkBitmap();
272 return skia_bitmap_; 271 return skia_bitmap_;
273 } 272 }
274 273
275 } // namespace content 274 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698