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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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 (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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 774
775 bool CompositorImpl::SupportsETC1NonPowerOfTwo() const { 775 bool CompositorImpl::SupportsETC1NonPowerOfTwo() const {
776 return gpu_capabilities_.texture_format_etc1_npot; 776 return gpu_capabilities_.texture_format_etc1_npot;
777 } 777 }
778 778
779 void CompositorImpl::DidPostSwapBuffers() { 779 void CompositorImpl::DidPostSwapBuffers() {
780 TRACE_EVENT0("compositor", "CompositorImpl::DidPostSwapBuffers"); 780 TRACE_EVENT0("compositor", "CompositorImpl::DidPostSwapBuffers");
781 pending_swapbuffers_++; 781 pending_swapbuffers_++;
782 } 782 }
783 783
784 void CompositorImpl::DidCompleteSwapBuffers() { 784 void CompositorImpl::DidReceiveCompositorFrameAck() {
785 TRACE_EVENT0("compositor", "CompositorImpl::DidCompleteSwapBuffers"); 785 TRACE_EVENT0("compositor", "CompositorImpl::DidReceiveCompositorFrameAck");
786 DCHECK_GT(pending_swapbuffers_, 0U); 786 DCHECK_GT(pending_swapbuffers_, 0U);
787 pending_swapbuffers_--; 787 pending_swapbuffers_--;
788 client_->OnSwapBuffersCompleted(pending_swapbuffers_); 788 client_->OnSwapBuffersCompleted(pending_swapbuffers_);
789 } 789 }
790 790
791 void CompositorImpl::DidAbortSwapBuffers() { 791 void CompositorImpl::DidAbortSwapBuffers() {
792 TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers"); 792 TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers");
793 // This really gets called only once from 793 // This really gets called only once from
794 // SingleThreadProxy::DidLoseCompositorFrameSinkOnImplThread() when the 794 // SingleThreadProxy::DidLoseCompositorFrameSinkOnImplThread() when the
795 // context was lost. 795 // context was lost.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 839
840 cc::FrameSinkId CompositorImpl::GetFrameSinkId() { 840 cc::FrameSinkId CompositorImpl::GetFrameSinkId() {
841 return frame_sink_id_; 841 return frame_sink_id_;
842 } 842 }
843 843
844 bool CompositorImpl::HavePendingReadbacks() { 844 bool CompositorImpl::HavePendingReadbacks() {
845 return !readback_layer_tree_->children().empty(); 845 return !readback_layer_tree_->children().empty();
846 } 846 }
847 847
848 } // namespace content 848 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698