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 "pdf/paint_manager.h" | 5 #include "pdf/paint_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <algorithm> | 10 #include <algorithm> |
8 | 11 |
9 #include "base/logging.h" | 12 #include "base/logging.h" |
10 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/cpp/instance.h" | 14 #include "ppapi/cpp/instance.h" |
12 #include "ppapi/cpp/module.h" | 15 #include "ppapi/cpp/module.h" |
13 | 16 |
14 PaintManager::PaintManager(pp::Instance* instance, | 17 PaintManager::PaintManager(pp::Instance* instance, |
15 Client* client, | 18 Client* client, |
16 bool is_always_opaque) | 19 bool is_always_opaque) |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 DCHECK(manual_callback_pending_); | 296 DCHECK(manual_callback_pending_); |
294 manual_callback_pending_ = false; | 297 manual_callback_pending_ = false; |
295 | 298 |
296 // Just because we have a manual callback doesn't mean there are actually any | 299 // Just because we have a manual callback doesn't mean there are actually any |
297 // invalid regions. Even though we only schedule this callback when something | 300 // invalid regions. Even though we only schedule this callback when something |
298 // is pending, a Flush callback could have come in before this callback was | 301 // is pending, a Flush callback could have come in before this callback was |
299 // executed and that could have cleared the queue. | 302 // executed and that could have cleared the queue. |
300 if (aggregator_.HasPendingUpdate()) | 303 if (aggregator_.HasPendingUpdate()) |
301 DoPaint(); | 304 DoPaint(); |
302 } | 305 } |
OLD | NEW |