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

Side by Side Diff: remoting/host/capturer.h

Issue 7992011: Move us fully from gfx:: over to skia types for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for bad DEPS Created 9 years, 2 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/rectangle_update_decoder.cc ('k') | remoting/host/capturer_fake.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_HOST_CAPTURER_H_ 5 #ifndef REMOTING_HOST_CAPTURER_H_
6 #define REMOTING_HOST_CAPTURER_H_ 6 #define REMOTING_HOST_CAPTURER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_old.h" 9 #include "base/callback_old.h"
10 #include "remoting/base/capture_data.h" 10 #include "remoting/base/capture_data.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Return the pixel format of the screen. 51 // Return the pixel format of the screen.
52 virtual media::VideoFrame::Format pixel_format() const = 0; 52 virtual media::VideoFrame::Format pixel_format() const = 0;
53 53
54 // Clear out the invalid region. 54 // Clear out the invalid region.
55 virtual void ClearInvalidRegion() = 0; 55 virtual void ClearInvalidRegion() = 0;
56 56
57 // Invalidate the specified region. 57 // Invalidate the specified region.
58 virtual void InvalidateRegion(const SkRegion& invalid_region) = 0; 58 virtual void InvalidateRegion(const SkRegion& invalid_region) = 0;
59 59
60 // Invalidate the entire screen, of a given size. 60 // Invalidate the entire screen, of a given size.
61 virtual void InvalidateScreen(const gfx::Size& size) = 0; 61 virtual void InvalidateScreen(const SkISize& size) = 0;
62 62
63 // Invalidate the entire screen, using the size of the most recently 63 // Invalidate the entire screen, using the size of the most recently
64 // captured screen. 64 // captured screen.
65 virtual void InvalidateFullScreen() = 0; 65 virtual void InvalidateFullScreen() = 0;
66 66
67 // Capture the screen data associated with each of the accumulated 67 // Capture the screen data associated with each of the accumulated
68 // dirty region. 68 // dirty region.
69 // When the capture is complete, |callback| is called even if the dirty region 69 // When the capture is complete, |callback| is called even if the dirty region
70 // is empty. 70 // is empty.
71 // 71 //
72 // It is OK to call this method while another thread is reading 72 // It is OK to call this method while another thread is reading
73 // data of the previous capture. 73 // data of the previous capture.
74 // There can be at most one concurrent read going on when this 74 // There can be at most one concurrent read going on when this
75 // method is called. 75 // method is called.
76 virtual void CaptureInvalidRegion(CaptureCompletedCallback* callback) = 0; 76 virtual void CaptureInvalidRegion(CaptureCompletedCallback* callback) = 0;
77 77
78 // Get the size of the most recently captured screen. 78 // Get the size of the most recently captured screen.
79 virtual const gfx::Size& size_most_recent() const = 0; 79 virtual const SkISize& size_most_recent() const = 0;
80 }; 80 };
81 81
82 } // namespace remoting 82 } // namespace remoting
83 83
84 #endif // REMOTING_HOST_CAPTURER_H_ 84 #endif // REMOTING_HOST_CAPTURER_H_
OLDNEW
« no previous file with comments | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/host/capturer_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698