OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/task.h" | |
13 #include "skia/ext/platform_canvas.h" | 12 #include "skia/ext/platform_canvas.h" |
14 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
15 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
16 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
17 #include "ppapi/c/ppb_graphics_2d.h" | 16 #include "ppapi/c/ppb_graphics_2d.h" |
18 #include "ppapi/thunk/enter.h" | 17 #include "ppapi/thunk/enter.h" |
19 #include "ppapi/thunk/thunk.h" | 18 #include "ppapi/thunk/thunk.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 19 #include "third_party/skia/include/core/SkBitmap.h" |
21 #include "ui/gfx/blit.h" | 20 #include "ui/gfx/blit.h" |
22 #include "ui/gfx/point.h" | 21 #include "ui/gfx/point.h" |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 } | 644 } |
646 | 645 |
647 bool PPB_Graphics2D_Impl::HasPendingFlush() const { | 646 bool PPB_Graphics2D_Impl::HasPendingFlush() const { |
648 return !unpainted_flush_callback_.is_null() || | 647 return !unpainted_flush_callback_.is_null() || |
649 !painted_flush_callback_.is_null() || | 648 !painted_flush_callback_.is_null() || |
650 offscreen_flush_pending_; | 649 offscreen_flush_pending_; |
651 } | 650 } |
652 | 651 |
653 } // namespace ppapi | 652 } // namespace ppapi |
654 } // namespace webkit | 653 } // namespace webkit |
OLD | NEW |