Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Side by Side Diff: ppapi/utility/graphics/paint_manager.cc

Issue 9030001: Move paint aggregator and the completion callback factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "ppapi/cpp/paint_manager.h" 5 #include "ppapi/utility/graphics/paint_manager.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/cpp/instance.h" 8 #include "ppapi/cpp/instance.h"
9 #include "ppapi/cpp/logging.h" 9 #include "ppapi/cpp/logging.h"
10 #include "ppapi/cpp/module.h" 10 #include "ppapi/cpp/module.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 PaintManager::PaintManager() 14 PaintManager::PaintManager()
15 : instance_(NULL), 15 : instance_(NULL),
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Just because we have a manual callback doesn't mean there are actually any 194 // Just because we have a manual callback doesn't mean there are actually any
195 // invalid regions. Even though we only schedule this callback when something 195 // invalid regions. Even though we only schedule this callback when something
196 // is pending, a Flush callback could have come in before this callback was 196 // is pending, a Flush callback could have come in before this callback was
197 // executed and that could have cleared the queue. 197 // executed and that could have cleared the queue.
198 if (aggregator_.HasPendingUpdate() && !flush_pending_) 198 if (aggregator_.HasPendingUpdate() && !flush_pending_)
199 DoPaint(); 199 DoPaint();
200 } 200 }
201 201
202 202
203 } // namespace pp 203 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698