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

Side by Side Diff: blimp/client/feature/compositor/blimp_output_surface.cc

Issue 2143263002: cc: Remove OutputSurfaceClient::DidSwapBuffers(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removedidswap: fix-webview-swap Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/client/feature/compositor/blimp_output_surface.h" 5 #include "blimp/client/feature/compositor/blimp_output_surface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "blimp/client/feature/compositor/blimp_context_provider.h" 9 #include "blimp/client/feature/compositor/blimp_context_provider.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
11 #include "cc/output/output_surface_client.h" 11 #include "cc/output/output_surface_client.h"
12 #include "gpu/command_buffer/client/context_support.h" 12 #include "gpu/command_buffer/client/context_support.h"
13 13
14 namespace blimp { 14 namespace blimp {
15 namespace client { 15 namespace client {
16 16
17 BlimpOutputSurface::BlimpOutputSurface( 17 BlimpOutputSurface::BlimpOutputSurface(
18 scoped_refptr<BlimpContextProvider> context_provider) 18 scoped_refptr<BlimpContextProvider> context_provider)
19 : cc::OutputSurface(std::move(context_provider), nullptr, nullptr) {} 19 : cc::OutputSurface(std::move(context_provider), nullptr, nullptr) {}
20 20
21 BlimpOutputSurface::~BlimpOutputSurface() {} 21 BlimpOutputSurface::~BlimpOutputSurface() {}
22 22
23 void BlimpOutputSurface::SwapBuffers(cc::CompositorFrame frame) { 23 void BlimpOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
24 // See cc::OutputSurface::SwapBuffers() comment for details. 24 // See cc::OutputSurface::SwapBuffers() comment for details.
25 context_provider_->ContextSupport()->Swap(); 25 context_provider_->ContextSupport()->Swap();
26 client_->DidSwapBuffers();
27 cc::OutputSurface::PostSwapBuffersComplete(); 26 cc::OutputSurface::PostSwapBuffersComplete();
28 } 27 }
29 28
30 uint32_t BlimpOutputSurface::GetFramebufferCopyTextureFormat() { 29 uint32_t BlimpOutputSurface::GetFramebufferCopyTextureFormat() {
31 auto* gl = static_cast<BlimpContextProvider*>(context_provider()); 30 auto* gl = static_cast<BlimpContextProvider*>(context_provider());
32 return gl->GetCopyTextureInternalFormat(); 31 return gl->GetCopyTextureInternalFormat();
33 } 32 }
34 33
35 } // namespace client 34 } // namespace client
36 } // namespace blimp 35 } // namespace blimp
OLDNEW
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698