Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / renderer / gpu / delegated_compositor_output_surface.cc
blobd9ed4963f8d2d01cdd6fd67a36e942224dd3b4c4
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
3 // found in the LICENSE file.
5 #include "content/renderer/gpu/delegated_compositor_output_surface.h"
6 #include "content/renderer/gpu/frame_swap_message_queue.h"
8 namespace content {
10 DelegatedCompositorOutputSurface::DelegatedCompositorOutputSurface(
11 int32 routing_id,
12 uint32 output_surface_id,
13 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
14 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue)
15 : CompositorOutputSurface(routing_id,
16 output_surface_id,
17 context_provider,
18 scoped_ptr<cc::SoftwareOutputDevice>(),
19 swap_frame_message_queue,
20 true) {
21 capabilities_.delegated_rendering = true;
22 capabilities_.max_frames_pending = 1;
25 } // namespace content