| 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/glue/plugins/pepper_graphics_2d.h" | 5 #include "webkit/glue/plugins/pepper_graphics_2d.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" | 12 #include "gfx/blit.h" |
| 13 #include "gfx/point.h" | 13 #include "gfx/point.h" |
| 14 #include "gfx/rect.h" | 14 #include "gfx/rect.h" |
| 15 #include "skia/ext/platform_canvas.h" | 15 #include "skia/ext/platform_canvas.h" |
| 16 #include "third_party/ppapi/c/pp_errors.h" | 16 #include "ppapi/c/pp_errors.h" |
| 17 #include "third_party/ppapi/c/pp_module.h" | 17 #include "ppapi/c/pp_module.h" |
| 18 #include "third_party/ppapi/c/pp_rect.h" | 18 #include "ppapi/c/pp_rect.h" |
| 19 #include "third_party/ppapi/c/pp_resource.h" | 19 #include "ppapi/c/pp_resource.h" |
| 20 #include "third_party/ppapi/c/ppb_graphics_2d.h" | 20 #include "ppapi/c/ppb_graphics_2d.h" |
| 21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
| 22 #include "webkit/glue/plugins/pepper_image_data.h" | 22 #include "webkit/glue/plugins/pepper_image_data.h" |
| 23 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 23 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
| 24 #include "webkit/glue/plugins/pepper_plugin_module.h" | 24 #include "webkit/glue/plugins/pepper_plugin_module.h" |
| 25 | 25 |
| 26 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
| 27 #include "base/mac_util.h" | 27 #include "base/mac_util.h" |
| 28 #include "base/mac/scoped_cftyperef.h" | 28 #include "base/mac/scoped_cftyperef.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 data.Execute(PP_OK); | 619 data.Execute(PP_OK); |
| 620 } | 620 } |
| 621 | 621 |
| 622 bool Graphics2D::HasPendingFlush() const { | 622 bool Graphics2D::HasPendingFlush() const { |
| 623 return !unpainted_flush_callback_.is_null() || | 623 return !unpainted_flush_callback_.is_null() || |
| 624 !painted_flush_callback_.is_null() || | 624 !painted_flush_callback_.is_null() || |
| 625 offscreen_flush_pending_; | 625 offscreen_flush_pending_; |
| 626 } | 626 } |
| 627 | 627 |
| 628 } // namespace pepper | 628 } // namespace pepper |
| OLD | NEW |