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

Unified Diff: cc/output/gl_renderer.cc

Issue 2042553002: Mac CoreAnimation compositor in the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock_directly
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index ae879e21d37ece258a1a2ea3d06cf699b4daa85e..0a2ae464c58ef155487661305cf5bf6c4aadb728 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -3592,6 +3592,16 @@ bool GLRenderer::IsContextLost() {
}
void GLRenderer::ScheduleCALayers(DrawingFrame* frame) {
+ output_surface_->ProcessCALayers(frame->ca_layer_overlay_list);
+ for (CALayerOverlay& ca_layer_overlay : frame->ca_layer_overlay_list) {
+ if (ca_layer_overlay.resource_lock) {
+ pending_overlay_resources_.push_back(
+ std::move(ca_layer_overlay.resource_lock));
+ }
+ }
+ frame->ca_layer_overlay_list.clear();
+ return;
+
for (CALayerOverlay& ca_layer_overlay : frame->ca_layer_overlay_list) {
unsigned texture_id = 0;
if (ca_layer_overlay.resource_lock) {
« no previous file with comments | « no previous file | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698