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

Side by Side Diff: cc/output/direct_renderer.cc

Issue 2908313002: Revert of gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | components/exo/wayland/clients/client_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/output/direct_renderer.h" 5 #include "cc/output/direct_renderer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 auto* context_provider = output_surface_->context_provider(); 91 auto* context_provider = output_surface_->context_provider();
92 92
93 use_partial_swap_ = settings_->partial_swap_enabled && CanPartialSwap(); 93 use_partial_swap_ = settings_->partial_swap_enabled && CanPartialSwap();
94 allow_empty_swap_ = use_partial_swap_; 94 allow_empty_swap_ = use_partial_swap_;
95 if (context_provider) { 95 if (context_provider) {
96 if (context_provider->ContextCapabilities().commit_overlay_planes) 96 if (context_provider->ContextCapabilities().commit_overlay_planes)
97 allow_empty_swap_ = true; 97 allow_empty_swap_ = true;
98 if (context_provider->ContextCapabilities().dc_layers) 98 if (context_provider->ContextCapabilities().dc_layers)
99 supports_dc_layers_ = true; 99 supports_dc_layers_ = true;
100 if (context_provider->ContextCapabilities()
101 .disable_non_empty_post_sub_buffers) {
102 use_partial_swap_ = false;
103 }
100 } 104 }
101 105
102 initialized_ = true; 106 initialized_ = true;
103 } 107 }
104 108
105 // static 109 // static
106 gfx::RectF DirectRenderer::QuadVertexRect() { 110 gfx::RectF DirectRenderer::QuadVertexRect() {
107 return gfx::RectF(-0.5f, -0.5f, 1.f, 1.f); 111 return gfx::RectF(-0.5f, -0.5f, 1.f, 1.f);
108 } 112 }
109 113
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { 646 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) {
643 return render_pass->output_rect.size(); 647 return render_pass->output_rect.size();
644 } 648 }
645 649
646 void DirectRenderer::SetCurrentFrameForTesting(const DrawingFrame& frame) { 650 void DirectRenderer::SetCurrentFrameForTesting(const DrawingFrame& frame) {
647 current_frame_valid_ = true; 651 current_frame_valid_ = true;
648 current_frame_ = frame; 652 current_frame_ = frame;
649 } 653 }
650 654
651 } // namespace cc 655 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | components/exo/wayland/clients/client_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698