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

Side by Side Diff: cc/software_renderer.cc

Issue 11111005: Remove GraphicsContext3D:: stubs from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again 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/scrollbar_layer.cc ('k') | cc/software_renderer_unittest.cc » ('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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « cc/scrollbar_layer.cc ('k') | cc/software_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698