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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 CCRendererSoftware::CCRendererSoftware(CCRendererClient* client, CCResourceProvi
der* resourceProvider, WebCompositorSoftwareOutputDevice* outputDevice) | 72 CCRendererSoftware::CCRendererSoftware(CCRendererClient* client, CCResourceProvi
der* resourceProvider, WebCompositorSoftwareOutputDevice* outputDevice) |
73 : CCDirectRenderer(client, resourceProvider) | 73 : CCDirectRenderer(client, resourceProvider) |
74 , m_visible(true) | 74 , m_visible(true) |
75 , m_outputDevice(outputDevice) | 75 , m_outputDevice(outputDevice) |
76 , m_skCurrentCanvas(0) | 76 , m_skCurrentCanvas(0) |
77 { | 77 { |
78 m_resourceProvider->setDefaultResourceType(CCResourceProvider::Bitmap); | 78 m_resourceProvider->setDefaultResourceType(CCResourceProvider::Bitmap); |
79 | 79 |
80 m_capabilities.maxTextureSize = INT_MAX; | 80 m_capabilities.maxTextureSize = INT_MAX; |
81 m_capabilities.bestTextureFormat = GraphicsContext3D::RGBA; | 81 m_capabilities.bestTextureFormat = GL_RGBA; |
82 m_capabilities.contextHasCachedFrontBuffer = true; | 82 m_capabilities.contextHasCachedFrontBuffer = true; |
83 m_capabilities.usingSetVisibility = true; | 83 m_capabilities.usingSetVisibility = true; |
84 | 84 |
85 viewportChanged(); | 85 viewportChanged(); |
86 } | 86 } |
87 | 87 |
88 CCRendererSoftware::~CCRendererSoftware() | 88 CCRendererSoftware::~CCRendererSoftware() |
89 { | 89 { |
90 } | 90 } |
91 | 91 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 } | 348 } |
349 | 349 |
350 void CCRendererSoftware::setVisible(bool visible) | 350 void CCRendererSoftware::setVisible(bool visible) |
351 { | 351 { |
352 if (m_visible == visible) | 352 if (m_visible == visible) |
353 return; | 353 return; |
354 m_visible = visible; | 354 m_visible = visible; |
355 } | 355 } |
356 | 356 |
357 } | 357 } |
OLD | NEW |