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

Unified Diff: remoting/client/plugin/pepper_view.h

Issue 10801003: Propagate DPI information to web-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback. Created 8 years, 5 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 | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_view.h
diff --git a/remoting/client/plugin/pepper_view.h b/remoting/client/plugin/pepper_view.h
index 949703acdb3f26dddaac5e24b7a485e83401bc2d..9cfa8b881c9770008aa7130ebf345fb79f9fa691 100644
--- a/remoting/client/plugin/pepper_view.h
+++ b/remoting/client/plugin/pepper_view.h
@@ -48,7 +48,8 @@ class PepperView : public ChromotingView,
pp::ImageData* buffer,
const SkRegion& region) OVERRIDE;
virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE;
- virtual void SetSourceSize(const SkISize& source_size) OVERRIDE;
+ virtual void SetSourceSize(const SkISize& source_size,
+ const SkIPoint& dpi) OVERRIDE;
// Sets the display size and clipping area of this view.
void SetView(const SkISize& view_size, const SkIRect& clip_area);
@@ -110,6 +111,9 @@ class PepperView : public ChromotingView,
// The size of the host screen.
SkISize source_size_;
+ // The DPI of the host screen.
+ SkIPoint source_dpi_;
+
// True if there is already a Flush() pending on the Graphics2D context.
bool flush_pending_;
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698