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

Unified Diff: content/browser/devtools/protocol/page_handler.h

Issue 1463813003: DevTools: optimize screencast for slower devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using sessions now Created 5 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/page_handler.h
diff --git a/content/browser/devtools/protocol/page_handler.h b/content/browser/devtools/protocol/page_handler.h
index 053b0597d6477abc1f5fa7e0f4342ccc2e61a730..5140fe3b9fa14c41745bc6a7c16052c76585c8dd 100644
--- a/content/browser/devtools/protocol/page_handler.h
+++ b/content/browser/devtools/protocol/page_handler.h
@@ -65,9 +65,10 @@ class PageHandler : public NotificationObserver {
Response StartScreencast(const std::string* format,
const int* quality,
const int* max_width,
- const int* max_height);
+ const int* max_height,
+ const int* every_nth_frame);
Response StopScreencast();
- Response ScreencastFrameAck(int frame_number);
+ Response ScreencastFrameAck(int session_id);
Response HandleJavaScriptDialog(bool accept, const std::string* prompt_text);
@@ -106,13 +107,14 @@ class PageHandler : public NotificationObserver {
int screencast_quality_;
int screencast_max_width_;
int screencast_max_height_;
+ int capture_every_nth_frame_;
int capture_retry_count_;
bool has_compositor_frame_metadata_;
cc::CompositorFrameMetadata next_compositor_frame_metadata_;
cc::CompositorFrameMetadata last_compositor_frame_metadata_;
- int screencast_frame_sent_;
- int screencast_frame_acked_;
- bool processing_screencast_frame_;
+ int session_id_;
+ int frame_counter_;
+ int frames_in_flight_;
scoped_ptr<ColorPicker> color_picker_;
« no previous file with comments | « no previous file | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698