Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 // Remote screen resolution in DPI. | |
|
Wez
2012/07/19 01:00:42
nit: "Vertical & horizontal DPI of the remote scre
Jamie
2012/07/19 23:00:06
Done.
| |
| 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_ |
| OLD | NEW |