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

Unified Diff: services/ui/surfaces/direct_output_surface_ozone.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
« no previous file with comments | « services/ui/surfaces/direct_output_surface_ozone.h ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/direct_output_surface_ozone.cc
diff --git a/services/ui/surfaces/direct_output_surface_ozone.cc b/services/ui/surfaces/direct_output_surface_ozone.cc
index 33c6bd7ed5ebd5f9bb586d3ab3955dd31a4a4aaf..8e723c6d83ea32a3f9e00368d543bf190292cb57 100644
--- a/services/ui/surfaces/direct_output_surface_ozone.cc
+++ b/services/ui/surfaces/direct_output_surface_ozone.cc
@@ -8,9 +8,9 @@
#include "base/bind.h"
#include "base/memory/ptr_util.h"
-#include "cc/output/compositor_frame.h"
#include "cc/output/context_provider.h"
#include "cc/output/output_surface_client.h"
+#include "cc/output/output_surface_frame.h"
#include "cc/scheduler/begin_frame_source.h"
#include "components/display_compositor/buffer_queue.h"
#include "gpu/command_buffer/client/context_support.h"
@@ -83,24 +83,22 @@ void DirectOutputSurfaceOzone::BindFramebuffer() {
buffer_queue_->BindFramebuffer();
}
-void DirectOutputSurfaceOzone::SwapBuffers(cc::CompositorFrame frame) {
+void DirectOutputSurfaceOzone::SwapBuffers(cc::OutputSurfaceFrame frame) {
DCHECK(buffer_queue_);
- DCHECK(frame.gl_frame_data);
// TODO(rjkroege): What if swap happens again before OnGpuSwapBuffersCompleted
// then it would see the wrong size?
- DCHECK(reshape_size_ == frame.gl_frame_data->size);
+ DCHECK(reshape_size_ == frame.size);
swap_size_ = reshape_size_;
- buffer_queue_->SwapBuffers(frame.gl_frame_data->sub_buffer_rect);
+ buffer_queue_->SwapBuffers(frame.sub_buffer_rect);
// Code combining GpuBrowserCompositorOutputSurface + DirectOutputSurface
- if (frame.gl_frame_data->sub_buffer_rect ==
- gfx::Rect(frame.gl_frame_data->size)) {
+ if (frame.sub_buffer_rect == gfx::Rect(frame.size)) {
context_provider_->ContextSupport()->Swap();
} else {
context_provider_->ContextSupport()->PartialSwapBuffers(
- frame.gl_frame_data->sub_buffer_rect);
+ frame.sub_buffer_rect);
}
gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL();
« no previous file with comments | « services/ui/surfaces/direct_output_surface_ozone.h ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698