| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |