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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 13ca9de0468ba21a5152a0412be502cbf3192c81..544849c7a630f63c1efff8dd45ddb03f056b99df 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -36,6 +36,7 @@
#include "cc/output/context_provider.h"
#include "cc/output/output_surface.h"
#include "cc/output/output_surface_client.h"
+#include "cc/output/output_surface_frame.h"
#include "cc/output/texture_mailbox_deleter.h"
#include "cc/output/vulkan_in_process_context_provider.h"
#include "cc/raster/single_thread_task_graph_runner.h"
@@ -230,13 +231,12 @@ class AndroidOutputSurface : public cc::OutputSurface {
~AndroidOutputSurface() override = default;
- void SwapBuffers(cc::CompositorFrame frame) override {
- GetCommandBufferProxy()->SetLatencyInfo(frame.metadata.latency_info);
- if (frame.gl_frame_data->sub_buffer_rect.IsEmpty()) {
+ void SwapBuffers(cc::OutputSurfaceFrame frame) override {
+ GetCommandBufferProxy()->SetLatencyInfo(frame.latency_info);
+ if (frame.sub_buffer_rect.IsEmpty()) {
context_provider_->ContextSupport()->CommitOverlayPlanes();
} else {
- DCHECK(frame.gl_frame_data->sub_buffer_rect ==
- gfx::Rect(frame.gl_frame_data->size));
+ DCHECK(frame.sub_buffer_rect == gfx::Rect(frame.size));
context_provider_->ContextSupport()->Swap();
}
}

Powered by Google App Engine
This is Rietveld 408576698