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

Unified Diff: pdf/paint_manager.cc

Issue 2828413005: Clang format pdf/ (Closed)
Patch Set: Manual tweaks Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/paint_manager.h ('k') | pdf/pdf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/paint_manager.cc
diff --git a/pdf/paint_manager.cc b/pdf/paint_manager.cc
index ea9cc7814679f0c077ce1e0861a83fab2d4fef93..4ae69ea2bbb292a69145825454f36c029c105ba1 100644
--- a/pdf/paint_manager.cc
+++ b/pdf/paint_manager.cc
@@ -48,8 +48,7 @@ PaintManager::PaintManager(pp::Instance* instance,
DCHECK(client);
}
-PaintManager::~PaintManager() {
-}
+PaintManager::~PaintManager() {}
// static
pp::Size PaintManager::GetNewContextSize(const pp::Size& current_context_size,
@@ -77,10 +76,10 @@ pp::Size PaintManager::GetNewContextSize(const pp::Size& current_context_size,
plugin_size.height() > current_context_size.height() ||
plugin_size.width() < min_size.width() ||
plugin_size.height() < min_size.height()) {
- // Create a larger context than needed so that if we only resize by a
- // small margin, we don't need a new context.
- result = pp::Size(plugin_size.width() + kBufferSize,
- plugin_size.height() + kBufferSize);
+ // Create a larger context than needed so that if we only resize by a
+ // small margin, we don't need a new context.
+ result = pp::Size(plugin_size.width() + kBufferSize,
+ plugin_size.height() + kBufferSize);
}
return result;
@@ -188,8 +187,7 @@ void PaintManager::EnsureCallbackPending() {
return;
pp::Module::Get()->core()->CallOnMainThread(
- 0,
- callback_factory_.NewCallback(&PaintManager::OnManualCallbackComplete),
+ 0, callback_factory_.NewCallback(&PaintManager::OnManualCallbackComplete),
0);
manual_callback_pending_ = true;
}
@@ -281,8 +279,8 @@ void PaintManager::DoPaint() {
}
for (const auto& ready_rect : ready_now) {
- graphics_.PaintImageData(
- ready_rect.image_data, ready_rect.offset, ready_rect.rect);
+ graphics_.PaintImageData(ready_rect.image_data, ready_rect.offset,
+ ready_rect.rect);
}
Flush();
« no previous file with comments | « pdf/paint_manager.h ('k') | pdf/pdf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698