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

Side by Side Diff: content/renderer/gpu/delegated_compositor_output_surface.cc

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable browsertest for android for realz this time Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/renderer/gpu/delegated_compositor_output_surface.h" 5 #include "content/renderer/gpu/delegated_compositor_output_surface.h"
6 #include "content/renderer/gpu/frame_swap_message_queue.h"
6 7
7 namespace content { 8 namespace content {
8 9
9 DelegatedCompositorOutputSurface::DelegatedCompositorOutputSurface( 10 DelegatedCompositorOutputSurface::DelegatedCompositorOutputSurface(
10 int32 routing_id, 11 int32 routing_id,
11 uint32 output_surface_id, 12 uint32 output_surface_id,
12 const scoped_refptr<ContextProviderCommandBuffer>& context_provider) 13 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
14 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue)
13 : CompositorOutputSurface(routing_id, 15 : CompositorOutputSurface(routing_id,
14 output_surface_id, 16 output_surface_id,
15 context_provider, 17 context_provider,
16 scoped_ptr<cc::SoftwareOutputDevice>(), 18 scoped_ptr<cc::SoftwareOutputDevice>(),
19 swap_frame_message_queue,
17 true) { 20 true) {
18 capabilities_.delegated_rendering = true; 21 capabilities_.delegated_rendering = true;
19 capabilities_.max_frames_pending = 1; 22 capabilities_.max_frames_pending = 1;
20 } 23 }
21 24
22 } // namespace content 25 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698