Index: content/browser/renderer_host/compositor_impl_android.cc |
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
index 64ed74c16081a91a691be298cd48ce05a3e575d1..43e76cfc7456980a1cbe8538e9c78202ef4b74a7 100644 |
--- a/content/browser/renderer_host/compositor_impl_android.cc |
+++ b/content/browser/renderer_host/compositor_impl_android.cc |
@@ -232,6 +232,8 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface { |
~OutputSurfaceWithoutParent() override = default; |
void SwapBuffers(cc::CompositorFrame frame) override { |
+ LOG(ERROR) << "bshe " |
+ << "===out put surface with parent swap buffers"; |
GetCommandBufferProxy()->SetLatencyInfo(frame.metadata.latency_info); |
if (frame.gl_frame_data->sub_buffer_rect.IsEmpty()) { |
context_provider_->ContextSupport()->CommitOverlayPlanes(); |
@@ -403,7 +405,7 @@ CompositorImpl::CompositorImpl(CompositorClient* client, |
->RegisterSurfaceClientId(surface_id_allocator_->client_id()); |
DCHECK(client); |
DCHECK(root_window); |
- DCHECK(root_window->GetLayer() == nullptr); |
+ // DCHECK(root_window->GetLayer() == nullptr); |
root_window->SetLayer(cc::Layer::Create()); |
readback_layer_tree_ = cc::Layer::Create(); |
readback_layer_tree_->SetHideLayerAndSubtree(true); |
@@ -437,6 +439,8 @@ void CompositorImpl::SetRootLayer(scoped_refptr<cc::Layer> root_layer) { |
subroot_layer_ = NULL; |
} |
if (root_window_->GetLayer()) { |
+ LOG(ERROR) << "bshe " |
+ << "set root layer success===="; |
subroot_layer_ = root_window_->GetLayer(); |
root_window_->GetLayer()->AddChild(root_layer); |
} |
@@ -448,6 +452,8 @@ void CompositorImpl::SetSurface(jobject surface) { |
GpuSurfaceTracker* tracker = GpuSurfaceTracker::Get(); |
+ LOG(ERROR) << "bshe " |
+ << "expect set Surface correctly===="; |
if (window_) { |
// Shut down GL context before unregistering surface. |
SetVisible(false); |
@@ -474,6 +480,8 @@ void CompositorImpl::SetSurface(jobject surface) { |
// Register first, SetVisible() might create an OutputSurface. |
RegisterViewSurface(surface_handle_, j_surface.obj()); |
SetVisible(true); |
+ LOG(ERROR) << "bshe " |
+ << "set Surface correctly===="; |
ANativeWindow_release(window); |
} |
} |
@@ -746,6 +754,8 @@ void CompositorImpl::DidCompleteSwapBuffers() { |
DCHECK_GT(pending_swapbuffers_, 0U); |
pending_swapbuffers_--; |
client_->OnSwapBuffersCompleted(pending_swapbuffers_); |
+ LOG(ERROR) << "bshe====" |
+ << "swap buffer complelet"; |
} |
void CompositorImpl::DidAbortSwapBuffers() { |