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

Side by Side Diff: cc/test/fake_layer_tree_host_client.cc

Issue 11464007: Add the DelegatingRenderer class with its initialize path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize() Created 8 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/test/fake_layer_tree_host_client.h" 5 #include "cc/test/fake_layer_tree_host_client.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 scoped_ptr<OutputSurface> FakeLayerImplTreeHostClient::createOutputSurface() 9 scoped_ptr<OutputSurface> FakeLayerImplTreeHostClient::createOutputSurface()
10 { 10 {
11 if (m_useSoftwareRendering) { 11 if (m_useSoftwareRendering) {
12 if (m_useDelegatingRenderer)
13 return FakeOutputSurface::CreateDelegatingSoftware(make_scoped_ptr(n ew FakeSoftwareOutputDevice).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurfac e>();
14
12 return FakeOutputSurface::CreateSoftware(make_scoped_ptr(new FakeSoftwar eOutputDevice).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurface>(); 15 return FakeOutputSurface::CreateSoftware(make_scoped_ptr(new FakeSoftwar eOutputDevice).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurface>();
13 } 16 }
14 17
15 WebKit::WebGraphicsContext3D::Attributes attrs; 18 WebKit::WebGraphicsContext3D::Attributes attrs;
19 if (m_useDelegatingRenderer)
20 return FakeOutputSurface::CreateDelegating3d(WebKit::CompositorFakeWebGr aphicsContext3D::create(attrs).PassAs<WebKit::WebGraphicsContext3D>()).PassAs<Ou tputSurface>();
21
16 return FakeOutputSurface::Create3d(WebKit::CompositorFakeWebGraphicsContext3 D::create(attrs).PassAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>() ; 22 return FakeOutputSurface::Create3d(WebKit::CompositorFakeWebGraphicsContext3 D::create(attrs).PassAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>() ;
17 } 23 }
18 24
19 scoped_ptr<InputHandler> FakeLayerImplTreeHostClient::createInputHandler() 25 scoped_ptr<InputHandler> FakeLayerImplTreeHostClient::createInputHandler()
20 { 26 {
21 return scoped_ptr<InputHandler>(); 27 return scoped_ptr<InputHandler>();
22 } 28 }
23 29
24 scoped_ptr<FontAtlas> FakeLayerImplTreeHostClient::createFontAtlas() 30 scoped_ptr<FontAtlas> FakeLayerImplTreeHostClient::createFontAtlas()
25 { 31 {
26 return scoped_ptr<FontAtlas>(); 32 return scoped_ptr<FontAtlas>();
27 } 33 }
28 34
29 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698