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

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

Issue 2864483007: gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync.
Patch Set: rebase 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 }
104 } 100 }
105 101
106 initialized_ = true; 102 initialized_ = true;
107 } 103 }
108 104
109 // static 105 // static
110 gfx::RectF DirectRenderer::QuadVertexRect() { 106 gfx::RectF DirectRenderer::QuadVertexRect() {
111 return gfx::RectF(-0.5f, -0.5f, 1.f, 1.f); 107 return gfx::RectF(-0.5f, -0.5f, 1.f, 1.f);
112 } 108 }
113 109
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { 642 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) {
647 return render_pass->output_rect.size(); 643 return render_pass->output_rect.size();
648 } 644 }
649 645
650 void DirectRenderer::SetCurrentFrameForTesting(const DrawingFrame& frame) { 646 void DirectRenderer::SetCurrentFrameForTesting(const DrawingFrame& frame) {
651 current_frame_valid_ = true; 647 current_frame_valid_ = true;
652 current_frame_ = frame; 648 current_frame_ = frame;
653 } 649 }
654 650
655 } // namespace cc 651 } // 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