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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_impl.h

Issue 1150423003: webview: Initialize synchronous compositor after first activation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool CalledOnValidThread() const; 105 bool CalledOnValidThread() const;
106 void UpdateNeedsBeginFrames(); 106 void UpdateNeedsBeginFrames();
107 void SetInputHandler(cc::InputHandler* input_handler); 107 void SetInputHandler(cc::InputHandler* input_handler);
108 108
109 SynchronousCompositorClient* compositor_client_; 109 SynchronousCompositorClient* compositor_client_;
110 SynchronousCompositorOutputSurface* output_surface_; 110 SynchronousCompositorOutputSurface* output_surface_;
111 SynchronousCompositorExternalBeginFrameSource* begin_frame_source_; 111 SynchronousCompositorExternalBeginFrameSource* begin_frame_source_;
112 WebContents* contents_; 112 WebContents* contents_;
113 const int routing_id_; 113 const int routing_id_;
114 cc::InputHandler* input_handler_; 114 cc::InputHandler* input_handler_;
115 bool has_initialized_;
boliu 2015/05/29 23:22:31 output_surface_ready_? And leave a comment explana
115 bool is_active_; 116 bool is_active_;
116 bool renderer_needs_begin_frames_; 117 bool renderer_needs_begin_frames_;
117 118
118 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; 119 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); 121 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl);
121 }; 122 };
122 123
123 } // namespace content 124 } // namespace content
124 125
125 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 126 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698