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

Unified Diff: content/browser/android/synchronous_compositor_host.h

Issue 1541203003: IPC-based sync compositor software draw optimization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CHECK Created 5 years 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/android/synchronous_compositor_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/synchronous_compositor_host.h
diff --git a/content/browser/android/synchronous_compositor_host.h b/content/browser/android/synchronous_compositor_host.h
index ecb4c898161350fc29ddf43cd0ea45d90e13bf29..8c60071db59fc7a49a243354c7632049a9e2bb1c 100644
--- a/content/browser/android/synchronous_compositor_host.h
+++ b/content/browser/android/synchronous_compositor_host.h
@@ -56,7 +56,11 @@ class SynchronousCompositorHost : public SynchronousCompositorBase {
void DidBecomeCurrent() override;
private:
+ class ScopedSendZeroMemory;
+ struct SharedMemoryWithSize;
+ friend class ScopedSetZeroMemory;
friend class SynchronousCompositorBase;
+
SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva,
SynchronousCompositorClient* client);
void PopulateCommonParams(SyncCompositorCommonBrowserParams* params);
@@ -67,6 +71,8 @@ class SynchronousCompositorHost : public SynchronousCompositorBase {
const DidOverscrollParams& over_scroll_params);
void SendAsyncCompositorStateIfNeeded();
void UpdateStateTask();
+ void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size);
+ void SendZeroMemory();
RenderWidgetHostViewAndroid* const rwhva_;
SynchronousCompositorClient* const client_;
@@ -77,6 +83,7 @@ class SynchronousCompositorHost : public SynchronousCompositorBase {
bool is_active_;
size_t bytes_limit_;
cc::ReturnedResourceArray returned_resources_;
+ scoped_ptr<SharedMemoryWithSize> software_draw_shm_;
// Updated by both renderer and browser.
gfx::ScrollOffset root_scroll_offset_;
« no previous file with comments | « no previous file | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698