| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 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 = GL_RGBA; |
| 72 m_capabilities.contextHasCachedFrontBuffer = true; | 72 m_capabilities.contextHasCachedFrontBuffer = true; |
| 73 m_capabilities.usingSetVisibility = true; | 73 m_capabilities.usingSetVisibility = true; |
| 74 | 74 |
| 75 viewportChanged(); | 75 viewportChanged(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 CCRendererSoftware::~CCRendererSoftware() | 78 CCRendererSoftware::~CCRendererSoftware() |
| 79 { | 79 { |
| 80 } | 80 } |
| 81 | 81 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 } | 270 } |
| 271 | 271 |
| 272 void CCRendererSoftware::setVisible(bool visible) | 272 void CCRendererSoftware::setVisible(bool visible) |
| 273 { | 273 { |
| 274 if (m_visible == visible) | 274 if (m_visible == visible) |
| 275 return; | 275 return; |
| 276 m_visible = visible; | 276 m_visible = visible; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } | 279 } |
| OLD | NEW |