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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2468633002: Replaced cc::Display::SetSurfaceId() with SetLocalFrameId() (Closed)
Patch Set: rebase and minor bug fixes Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/renderer_host/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 auto* task_runner = base::ThreadTaskRunnerHandle::Get().get(); 719 auto* task_runner = base::ThreadTaskRunnerHandle::Get().get();
720 std::unique_ptr<ExternalBeginFrameSource> begin_frame_source( 720 std::unique_ptr<ExternalBeginFrameSource> begin_frame_source(
721 new ExternalBeginFrameSource(this)); 721 new ExternalBeginFrameSource(this));
722 std::unique_ptr<cc::DisplayScheduler> scheduler(new cc::DisplayScheduler( 722 std::unique_ptr<cc::DisplayScheduler> scheduler(new cc::DisplayScheduler(
723 begin_frame_source.get(), task_runner, 723 begin_frame_source.get(), task_runner,
724 display_output_surface->capabilities().max_frames_pending)); 724 display_output_surface->capabilities().max_frames_pending));
725 725
726 display_.reset(new cc::Display( 726 display_.reset(new cc::Display(
727 HostSharedBitmapManager::current(), 727 HostSharedBitmapManager::current(),
728 BrowserGpuMemoryBufferManager::current(), 728 BrowserGpuMemoryBufferManager::current(),
729 host_->GetSettings().renderer_settings, std::move(begin_frame_source), 729 host_->GetSettings().renderer_settings, frame_sink_id_,
730 std::move(display_output_surface), std::move(scheduler), 730 std::move(begin_frame_source), std::move(display_output_surface),
731 std::move(scheduler),
731 base::MakeUnique<cc::TextureMailboxDeleter>(task_runner))); 732 base::MakeUnique<cc::TextureMailboxDeleter>(task_runner)));
732 733
733 auto compositor_frame_sink = 734 auto compositor_frame_sink =
734 vulkan_context_provider 735 vulkan_context_provider
735 ? base::MakeUnique<cc::DirectCompositorFrameSink>( 736 ? base::MakeUnique<cc::DirectCompositorFrameSink>(
736 frame_sink_id_, manager, display_.get(), 737 frame_sink_id_, manager, display_.get(),
737 vulkan_context_provider) 738 vulkan_context_provider)
738 : base::MakeUnique<cc::DirectCompositorFrameSink>( 739 : base::MakeUnique<cc::DirectCompositorFrameSink>(
739 frame_sink_id_, manager, display_.get(), context_provider, 740 frame_sink_id_, manager, display_.get(), context_provider,
740 nullptr, BrowserGpuMemoryBufferManager::current(), 741 nullptr, BrowserGpuMemoryBufferManager::current(),
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 827
827 cc::FrameSinkId CompositorImpl::GetFrameSinkId() { 828 cc::FrameSinkId CompositorImpl::GetFrameSinkId() {
828 return frame_sink_id_; 829 return frame_sink_id_;
829 } 830 }
830 831
831 bool CompositorImpl::HavePendingReadbacks() { 832 bool CompositorImpl::HavePendingReadbacks() {
832 return !readback_layer_tree_->children().empty(); 833 return !readback_layer_tree_->children().empty();
833 } 834 }
834 835
835 } // namespace content 836 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698