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

Side by Side Diff: remoting/client/rectangle_update_decoder.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ 5 #ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_
6 #define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ 6 #define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SchedulePaint(); 68 void SchedulePaint();
69 void DoPaint(); 69 void DoPaint();
70 70
71 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 71 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
72 scoped_refptr<FrameConsumerProxy> consumer_; 72 scoped_refptr<FrameConsumerProxy> consumer_;
73 scoped_ptr<Decoder> decoder_; 73 scoped_ptr<Decoder> decoder_;
74 74
75 // Remote screen size in pixels. 75 // Remote screen size in pixels.
76 SkISize source_size_; 76 SkISize source_size_;
77 77
78 // Vertical and horizontal DPI of the remote screen.
79 SkIPoint source_dpi_;
80
78 // The current dimentions of the frame consumer view. 81 // The current dimentions of the frame consumer view.
79 SkISize view_size_; 82 SkISize view_size_;
80 SkIRect clip_area_; 83 SkIRect clip_area_;
81 84
82 // The drawing buffers supplied by the frame consumer. 85 // The drawing buffers supplied by the frame consumer.
83 std::list<pp::ImageData*> buffers_; 86 std::list<pp::ImageData*> buffers_;
84 87
85 // Flag used to coalesce runs of SchedulePaint()s into a single DoPaint(). 88 // Flag used to coalesce runs of SchedulePaint()s into a single DoPaint().
86 bool paint_scheduled_; 89 bool paint_scheduled_;
87 }; 90 };
88 91
89 } // namespace remoting 92 } // namespace remoting
90 93
91 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ 94 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698