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

Side by Side Diff: cc/surfaces/display.h

Issue 2242633002: Android: Force draw for pending readbacks during Display teardown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tn1
Patch Set: fix Created 4 years, 4 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 | cc/surfaces/display.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override; 110 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
111 111
112 void SetEnlargePassTextureAmountForTesting( 112 void SetEnlargePassTextureAmountForTesting(
113 const gfx::Size& enlarge_texture_amount) { 113 const gfx::Size& enlarge_texture_amount) {
114 enlarge_texture_amount_ = enlarge_texture_amount; 114 enlarge_texture_amount_ = enlarge_texture_amount;
115 } 115 }
116 116
117 bool has_scheduler() const { return !!scheduler_; } 117 bool has_scheduler() const { return !!scheduler_; }
118 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 118 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
119 119
120 void ForceImmediateDrawAndSwapIfPossible();
121
120 private: 122 private:
121 void InitializeRenderer(); 123 void InitializeRenderer();
122 void UpdateRootSurfaceResourcesLocked(); 124 void UpdateRootSurfaceResourcesLocked();
123 125
124 SharedBitmapManager* const bitmap_manager_; 126 SharedBitmapManager* const bitmap_manager_;
125 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_; 127 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_;
126 const RendererSettings settings_; 128 const RendererSettings settings_;
127 129
128 DisplayClient* client_ = nullptr; 130 DisplayClient* client_ = nullptr;
129 SurfaceManager* surface_manager_ = nullptr; 131 SurfaceManager* surface_manager_ = nullptr;
(...skipping 20 matching lines...) Expand all
150 SoftwareRenderer* software_renderer_ = nullptr; 152 SoftwareRenderer* software_renderer_ = nullptr;
151 std::vector<ui::LatencyInfo> stored_latency_info_; 153 std::vector<ui::LatencyInfo> stored_latency_info_;
152 154
153 private: 155 private:
154 DISALLOW_COPY_AND_ASSIGN(Display); 156 DISALLOW_COPY_AND_ASSIGN(Display);
155 }; 157 };
156 158
157 } // namespace cc 159 } // namespace cc
158 160
159 #endif // CC_SURFACES_DISPLAY_H_ 161 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698