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

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

Issue 2658293002: content: Remove Lock/Unlock CompositingSurface API from RWH. (Closed)
Patch Set: mac Created 3 years, 11 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: 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 1ae0156d5c93ba84c8ab9d2cd50ccfb724dba12d..467824f1779a8fb665410878c91b5bf9eb130c19 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -146,8 +146,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
const SkBitmap& zoomed_bitmap) override;
std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
override;
- void LockCompositingSurface() override;
- void UnlockCompositingSurface() override;
void OnDidNavigateMainFrameToNewPage() override;
void SetNeedsBeginFrames(bool needs_begin_frames) override;
@@ -279,11 +277,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
const ReadbackRequestCallback& callback,
const SkColorType color_type);
- // If we have locks on a frame during a ContentViewCore swap or a context
- // lost, the frame is no longer valid and we can safely release all the locks.
- // Use this method to release all the locks.
- void ReleaseLocksOnSurface();
-
// Drop any incoming frames from the renderer when there are locks on the
// current frame.
void RetainFrame(uint32_t compositor_frame_sink_id,
@@ -381,7 +374,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
std::unique_ptr<DelegatedFrameEvictor> frame_evictor_;
- size_t locks_on_frame_count_;
bool observing_root_window_;
struct LastFrameInfo {

Powered by Google App Engine
This is Rietveld 408576698