OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "gfx/blit.h" | |
13 #include "gfx/point.h" | |
14 #include "gfx/rect.h" | |
15 #include "skia/ext/platform_canvas.h" | 12 #include "skia/ext/platform_canvas.h" |
16 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
17 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
18 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
19 #include "ppapi/c/ppb_graphics_2d.h" | 16 #include "ppapi/c/ppb_graphics_2d.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 18 #include "ui/gfx/blit.h" |
| 19 #include "ui/gfx/point.h" |
| 20 #include "ui/gfx/rect.h" |
21 #include "webkit/plugins/ppapi/common.h" | 21 #include "webkit/plugins/ppapi/common.h" |
22 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 22 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
23 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
24 | 24 |
25 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
26 #include "base/mac/mac_util.h" | 26 #include "base/mac/mac_util.h" |
27 #include "base/mac/scoped_cftyperef.h" | 27 #include "base/mac/scoped_cftyperef.h" |
28 #endif | 28 #endif |
29 | 29 |
30 namespace webkit { | 30 namespace webkit { |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 | 672 |
673 bool PPB_Graphics2D_Impl::HasPendingFlush() const { | 673 bool PPB_Graphics2D_Impl::HasPendingFlush() const { |
674 return !unpainted_flush_callback_.is_null() || | 674 return !unpainted_flush_callback_.is_null() || |
675 !painted_flush_callback_.is_null() || | 675 !painted_flush_callback_.is_null() || |
676 offscreen_flush_pending_; | 676 offscreen_flush_pending_; |
677 } | 677 } |
678 | 678 |
679 } // namespace ppapi | 679 } // namespace ppapi |
680 } // namespace webkit | 680 } // namespace webkit |
681 | 681 |
OLD | NEW |