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

Side by Side Diff: remoting/client/frame_consumer.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 | « no previous file | remoting/client/frame_consumer_proxy.h » ('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_FRAME_CONSUMER_H_ 5 #ifndef REMOTING_CLIENT_FRAME_CONSUMER_H_
6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ 6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_
7 7
8 #include "third_party/skia/include/core/SkRect.h" 8 #include "third_party/skia/include/core/SkRect.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "third_party/skia/include/core/SkSize.h" 10 #include "third_party/skia/include/core/SkSize.h"
(...skipping 18 matching lines...) Expand all
29 const SkIRect& clip_area, 29 const SkIRect& clip_area,
30 pp::ImageData* buffer, 30 pp::ImageData* buffer,
31 const SkRegion& region) = 0; 31 const SkRegion& region) = 0;
32 32
33 // Accepts a buffer that couldn't be used for drawing for any reason (shutdown 33 // Accepts a buffer that couldn't be used for drawing for any reason (shutdown
34 // is in progress, the view area has changed, etc.). The accepted buffer can 34 // is in progress, the view area has changed, etc.). The accepted buffer can
35 // be freed or reused for another drawing operation. 35 // be freed or reused for another drawing operation.
36 virtual void ReturnBuffer(pp::ImageData* buffer) = 0; 36 virtual void ReturnBuffer(pp::ImageData* buffer) = 0;
37 37
38 // Set the dimension of the entire host screen. 38 // Set the dimension of the entire host screen.
39 virtual void SetSourceSize(const SkISize& source_size) = 0; 39 virtual void SetSourceSize(const SkISize& source_size,
40 const SkIPoint& dpi) = 0;
40 41
41 protected: 42 protected:
42 FrameConsumer() {} 43 FrameConsumer() {}
43 virtual ~FrameConsumer() {} 44 virtual ~FrameConsumer() {}
44 45
45 private: 46 private:
46 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); 47 DISALLOW_COPY_AND_ASSIGN(FrameConsumer);
47 }; 48 };
48 49
49 } // namespace remoting 50 } // namespace remoting
50 51
51 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ 52 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/frame_consumer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698