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

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

Issue 11967033: [CLOSED] In-browser software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the lack SkCanvas::clear scissoring. Created 7 years, 11 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
« no previous file with comments | « cc/software_renderer_unittest.cc ('k') | cc/test/fake_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 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 #include "cc/software_output_device_impl.h"
6 7
7 namespace cc { 8 namespace cc {
8 9
9 scoped_ptr<OutputSurface> FakeLayerImplTreeHostClient::createOutputSurface() 10 scoped_ptr<OutputSurface> FakeLayerImplTreeHostClient::createOutputSurface()
10 { 11 {
11 if (m_useSoftwareRendering) { 12 if (m_useSoftwareRendering) {
12 if (m_useDelegatingRenderer) 13 if (m_useDelegatingRenderer)
13 return FakeOutputSurface::CreateDelegatingSoftware(make_scoped_ptr(n ew FakeSoftwareOutputDevice).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurfac e>(); 14 return FakeOutputSurface::CreateDelegatingSoftware(make_scoped_ptr(n ew SoftwareOutputDeviceImpl).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurfac e>();
14 15
15 return FakeOutputSurface::CreateSoftware(make_scoped_ptr(new FakeSoftwar eOutputDevice).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurface>(); 16 return FakeOutputSurface::CreateSoftware(make_scoped_ptr(new SoftwareOut putDeviceImpl).PassAs<SoftwareOutputDevice>()).PassAs<OutputSurface>();
16 } 17 }
17 18
18 WebKit::WebGraphicsContext3D::Attributes attrs; 19 WebKit::WebGraphicsContext3D::Attributes attrs;
19 if (m_useDelegatingRenderer) 20 if (m_useDelegatingRenderer)
20 return FakeOutputSurface::CreateDelegating3d(FakeWebGraphicsContext3D::C reate(attrs).PassAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>(); 21 return FakeOutputSurface::CreateDelegating3d(FakeWebGraphicsContext3D::C reate(attrs).PassAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>();
21 22
22 return FakeOutputSurface::Create3d(FakeWebGraphicsContext3D::Create(attrs).P assAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>(); 23 return FakeOutputSurface::Create3d(FakeWebGraphicsContext3D::Create(attrs).P assAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>();
23 } 24 }
24 25
25 scoped_ptr<InputHandler> FakeLayerImplTreeHostClient::createInputHandler() 26 scoped_ptr<InputHandler> FakeLayerImplTreeHostClient::createInputHandler()
26 { 27 {
27 return scoped_ptr<InputHandler>(); 28 return scoped_ptr<InputHandler>();
28 } 29 }
29 30
30 scoped_ptr<FontAtlas> FakeLayerImplTreeHostClient::createFontAtlas() 31 scoped_ptr<FontAtlas> FakeLayerImplTreeHostClient::createFontAtlas()
31 { 32 {
32 return scoped_ptr<FontAtlas>(); 33 return scoped_ptr<FontAtlas>();
33 } 34 }
34 35
35 } // namespace cc 36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/software_renderer_unittest.cc ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698