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

Unified Diff: remoting/host/capturer_fake.cc

Issue 10799013: Removing unused and private methods remoting::Capturer interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: remoting/host/capturer_fake.cc
diff --git a/remoting/host/capturer_fake.cc b/remoting/host/capturer_fake.cc
index cf7ddec6a248eac89e19bd07d079b8da1b9e93f1..d2ed0b81ec5aeaf53b2aab85a39f602fb574144a 100644
--- a/remoting/host/capturer_fake.cc
+++ b/remoting/host/capturer_fake.cc
@@ -45,42 +45,18 @@ void CapturerFake::Start(
void CapturerFake::Stop() {
}
-void CapturerFake::ScreenConfigurationChanged() {
- size_ = SkISize::Make(kWidth, kHeight);
- bytes_per_row_ = size_.width() * kBytesPerPixel;
- pixel_format_ = media::VideoFrame::RGB32;
-
- // Create memory for the buffers.
- int buffer_size = size_.height() * bytes_per_row_;
- for (int i = 0; i < kNumBuffers; i++) {
- buffers_[i].reset(new uint8[buffer_size]);
- }
-}
-
media::VideoFrame::Format CapturerFake::pixel_format() const {
return pixel_format_;
}
-void CapturerFake::ClearInvalidRegion() {
- helper.ClearInvalidRegion();
-}
-
void CapturerFake::InvalidateRegion(const SkRegion& invalid_region) {
helper.InvalidateRegion(invalid_region);
}
-void CapturerFake::InvalidateScreen(const SkISize& size) {
- helper.InvalidateScreen(size);
-}
-
-void CapturerFake::InvalidateFullScreen() {
- helper.InvalidateFullScreen();
-}
-
void CapturerFake::CaptureInvalidRegion(
const CaptureCompletedCallback& callback) {
GenerateImage();
- InvalidateScreen(size_);
+ helper.InvalidateScreen(size_);
SkRegion invalid_region;
helper.SwapInvalidRegion(&invalid_region);
@@ -137,4 +113,16 @@ void CapturerFake::GenerateImage() {
}
}
+void CapturerFake::ScreenConfigurationChanged() {
+ size_ = SkISize::Make(kWidth, kHeight);
+ bytes_per_row_ = size_.width() * kBytesPerPixel;
+ pixel_format_ = media::VideoFrame::RGB32;
+
+ // Create memory for the buffers.
+ int buffer_size = size_.height() * bytes_per_row_;
+ for (int i = 0; i < kNumBuffers; i++) {
+ buffers_[i].reset(new uint8[buffer_size]);
+ }
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698