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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 1103233002: Remove maintaing ReadbackRequests for copyFromCompositingSurface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove abortpendingreadbacks. Created 5 years, 8 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index f5eace1df9bb4f34cd4b2be70976bba1e43a5907..462cabde47f61333c9499a8373932be10ecacbee 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -60,26 +60,6 @@ class RenderWidgetHostImpl;
struct DidOverscrollParams;
struct NativeWebKeyboardEvent;
-class ReadbackRequest {
- public:
- explicit ReadbackRequest(float scale,
- SkColorType color_type,
- gfx::Rect src_subrect,
- ReadbackRequestCallback& result_callback);
- ~ReadbackRequest();
- float GetScale() { return scale_; }
- SkColorType GetColorFormat() { return color_type_; }
- const gfx::Rect GetCaptureRect() { return src_subrect_; }
- ReadbackRequestCallback& GetResultCallback() { return result_callback_; }
-
- private:
- ReadbackRequest();
- float scale_;
- SkColorType color_type_;
- gfx::Rect src_subrect_;
- ReadbackRequestCallback result_callback_;
-};
-
// -----------------------------------------------------------------------------
// See comments in render_widget_host_view.h about this class and its members.
// -----------------------------------------------------------------------------
@@ -337,9 +317,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period);
bool Animate(base::TimeTicks frame_time);
- // Handles all unprocessed and pending readback requests.
- void AbortPendingReadbackRequests();
-
// The model object.
RenderWidgetHostImpl* host_;
@@ -418,9 +395,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
TextSurroundingSelectionCallback text_surrounding_selection_callback_;
- // List of readbackrequests waiting for arrival of a valid frame.
- std::queue<ReadbackRequest> readbacks_waiting_for_frame_;
-
// The last scroll offset of the view.
gfx::Vector2dF last_scroll_offset_;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698