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

Unified Diff: ui/compositor/test/in_process_context_factory.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 | « tools/ipc_fuzzer/fuzzer/fuzzer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index 3086087e323874ca78775fa2d4807180e5ca4720..969d14b9a050eac9cea443edf63ce1c6aabdf7f4 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -11,9 +11,9 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/threading/thread.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/output/texture_mailbox_deleter.h"
#include "cc/scheduler/begin_frame_source.h"
#include "cc/scheduler/delay_based_time_source.h"
@@ -66,15 +66,13 @@ class DirectOutputSurface : public cc::OutputSurface {
return false;
return true;
}
- void SwapBuffers(cc::CompositorFrame frame) override {
+ void SwapBuffers(cc::OutputSurfaceFrame frame) override {
DCHECK(context_provider_.get());
- DCHECK(frame.gl_frame_data);
- 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();
const uint64_t fence_sync = gl->InsertFenceSyncCHROMIUM();
« no previous file with comments | « tools/ipc_fuzzer/fuzzer/fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698