OLD | NEW |
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 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
13 #include "content/renderer/pepper/common.h" | |
14 #include "content/renderer/render_thread_impl.h" | 13 #include "content/renderer/render_thread_impl.h" |
15 #include "ppapi/c/pp_errors.h" | 14 #include "ppapi/c/pp_errors.h" |
16 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
17 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
18 #include "ppapi/c/ppb_image_data.h" | 17 #include "ppapi/c/ppb_image_data.h" |
19 #include "ppapi/thunk/thunk.h" | 18 #include "ppapi/thunk/thunk.h" |
20 #include "skia/ext/platform_canvas.h" | 19 #include "skia/ext/platform_canvas.h" |
21 #include "third_party/skia/include/core/SkColorPriv.h" | 20 #include "third_party/skia/include/core/SkColorPriv.h" |
22 #include "ui/surface/transport_dib.h" | 21 #include "ui/surface/transport_dib.h" |
23 | 22 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 return skia_canvas_.get(); | 312 return skia_canvas_.get(); |
314 } | 313 } |
315 | 314 |
316 const SkBitmap* ImageDataSimpleBackend::GetMappedBitmap() const { | 315 const SkBitmap* ImageDataSimpleBackend::GetMappedBitmap() const { |
317 if (!IsMapped()) | 316 if (!IsMapped()) |
318 return NULL; | 317 return NULL; |
319 return &skia_bitmap_; | 318 return &skia_bitmap_; |
320 } | 319 } |
321 | 320 |
322 } // namespace content | 321 } // namespace content |
OLD | NEW |