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

Side by Side Diff: cc/CCRendererSoftware.cpp

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang Created 8 years, 2 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/CCRendererGL.cpp ('k') | cc/CCResourceProvider.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 "config.h" 5 #include "config.h"
6 6
7 #include "CCRendererSoftware.h" 7 #include "CCRendererSoftware.h"
8 8
9 #include "CCDebugBorderDrawQuad.h" 9 #include "CCDebugBorderDrawQuad.h"
10 #include "CCSolidColorDrawQuad.h" 10 #include "CCSolidColorDrawQuad.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 CCRendererSoftware::CCRendererSoftware(CCRendererClient* client, CCResourceProvi der* resourceProvider, WebCompositorSoftwareOutputDevice* outputDevice) 62 CCRendererSoftware::CCRendererSoftware(CCRendererClient* client, CCResourceProvi der* resourceProvider, WebCompositorSoftwareOutputDevice* outputDevice)
63 : CCDirectRenderer(client, resourceProvider) 63 : CCDirectRenderer(client, resourceProvider)
64 , m_visible(true) 64 , m_visible(true)
65 , m_outputDevice(outputDevice) 65 , m_outputDevice(outputDevice)
66 , m_skCurrentCanvas(0) 66 , m_skCurrentCanvas(0)
67 { 67 {
68 m_resourceProvider->setDefaultResourceType(CCResourceProvider::Bitmap); 68 m_resourceProvider->setDefaultResourceType(CCResourceProvider::Bitmap);
69 69
70 m_capabilities.maxTextureSize = INT_MAX; 70 m_capabilities.maxTextureSize = INT_MAX;
71 m_capabilities.bestTextureFormat = GraphicsContext3D::RGBA; 71 m_capabilities.bestTextureFormat = GraphicsContext3D::RGBA;
72 m_capabilities.contextHasCachedFrontBuffer = true;
73 m_capabilities.usingSetVisibility = true; 72 m_capabilities.usingSetVisibility = true;
74 73
75 viewportChanged(); 74 viewportChanged();
76 } 75 }
77 76
78 CCRendererSoftware::~CCRendererSoftware() 77 CCRendererSoftware::~CCRendererSoftware()
79 { 78 {
80 } 79 }
81 80
82 const RendererCapabilities& CCRendererSoftware::capabilities() const 81 const RendererCapabilities& CCRendererSoftware::capabilities() const
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 269 }
271 270
272 void CCRendererSoftware::setVisible(bool visible) 271 void CCRendererSoftware::setVisible(bool visible)
273 { 272 {
274 if (m_visible == visible) 273 if (m_visible == visible)
275 return; 274 return;
276 m_visible = visible; 275 m_visible = visible;
277 } 276 }
278 277
279 } 278 }
OLDNEW
« no previous file with comments | « cc/CCRendererGL.cpp ('k') | cc/CCResourceProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698