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

Unified Diff: pdf/paint_manager.h

Issue 2270463003: Turn on enforce-in-pdf Clang plugin flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win clang Created 4 years, 4 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_aggregator.cc ('k') | pdf/paint_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/paint_manager.h
diff --git a/pdf/paint_manager.h b/pdf/paint_manager.h
index d7f7e3f594b8685bbf84cc18b012eb0789f14b28..dd99f9d2a61f4203be6d884667a268783a3f6ad7 100644
--- a/pdf/paint_manager.h
+++ b/pdf/paint_manager.h
@@ -33,13 +33,9 @@ class PaintManager {
// it should be flushed to the screen immediately or when the rest of the
// plugin viewport is ready.
struct ReadyRect {
- pp::Point offset;
- pp::Rect rect;
- pp::ImageData image_data;
- bool flush_now;
-
- ReadyRect(const pp::Rect& r, const pp::ImageData& i, bool f)
- : rect(r), image_data(i), flush_now(f) {}
+ ReadyRect();
+ ReadyRect(const pp::Rect& r, const pp::ImageData& i, bool f);
+ ReadyRect(const ReadyRect& that);
operator PaintAggregator::ReadyRect() const {
PaintAggregator::ReadyRect rv;
@@ -48,6 +44,11 @@ class PaintManager {
rv.image_data = image_data;
return rv;
}
+
+ pp::Point offset;
+ pp::Rect rect;
+ pp::ImageData image_data;
+ bool flush_now;
};
class Client {
public:
@@ -72,6 +73,7 @@ class PaintManager {
virtual void OnPaint(const std::vector<pp::Rect>& paint_rects,
std::vector<ReadyRect>* ready,
std::vector<pp::Rect>* pending) = 0;
+
protected:
// You shouldn't be doing deleting through this interface.
virtual ~Client() {}
« no previous file with comments | « pdf/paint_aggregator.cc ('k') | pdf/paint_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698