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

Unified Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.cc

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits 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
Index: content/browser/compositor/offscreen_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc
index daaa970a0a8b2d45d82d388e619c25aa36864eea..05ba1efd449e8aee0a76314bdb459903825914dc 100644
--- a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc
@@ -135,13 +135,13 @@ OffscreenBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() {
}
void OffscreenBrowserCompositorOutputSurface::SwapBuffers(
- cc::CompositorFrame* frame) {
+ cc::CompositorFrame frame) {
if (reflector_) {
- if (frame->gl_frame_data->sub_buffer_rect ==
- gfx::Rect(frame->gl_frame_data->size))
+ if (frame.gl_frame_data->sub_buffer_rect ==
+ gfx::Rect(frame.gl_frame_data->size))
reflector_->OnSourceSwapBuffers();
else
- reflector_->OnSourcePostSubBuffer(frame->gl_frame_data->sub_buffer_rect);
+ reflector_->OnSourcePostSubBuffer(frame.gl_frame_data->sub_buffer_rect);
}
client_->DidSwapBuffers();

Powered by Google App Engine
This is Rietveld 408576698