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

Side by Side Diff: cc/software_renderer.cc

Issue 11450019: Finish the rename from cc::GraphicsContext to cc::OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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 "cc/software_renderer.h" 5 #include "cc/software_renderer.h"
6 6
7 #include <public/WebCompositorSoftwareOutputDevice.h> 7 #include <public/WebCompositorSoftwareOutputDevice.h>
8 #include <public/WebImage.h> 8 #include <public/WebImage.h>
9 #include <public/WebSize.h> 9 #include <public/WebSize.h>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 SoftwareRenderer::SoftwareRenderer(RendererClient* client, ResourceProvider* res ourceProvider, WebCompositorSoftwareOutputDevice* outputDevice) 64 SoftwareRenderer::SoftwareRenderer(RendererClient* client, ResourceProvider* res ourceProvider, WebCompositorSoftwareOutputDevice* outputDevice)
65 : DirectRenderer(client, resourceProvider) 65 : DirectRenderer(client, resourceProvider)
66 , m_visible(true) 66 , m_visible(true)
67 , m_outputDevice(outputDevice) 67 , m_outputDevice(outputDevice)
68 , m_skCurrentCanvas(0) 68 , m_skCurrentCanvas(0)
69 { 69 {
70 m_resourceProvider->setDefaultResourceType(ResourceProvider::Bitmap); 70 m_resourceProvider->setDefaultResourceType(ResourceProvider::Bitmap);
71 71
72 m_capabilities.maxTextureSize = INT_MAX; 72 m_capabilities.maxTextureSize = INT_MAX;
73 m_capabilities.bestTextureFormat = GL_RGBA; 73 m_capabilities.bestTextureFormat = GL_RGBA;
74 m_capabilities.contextHasCachedFrontBuffer = true;
jamesr 2012/12/06 00:17:35 hmm?
danakj 2012/12/06 01:02:55 This was set in each renderer but then completely
75 m_capabilities.usingSetVisibility = true; 74 m_capabilities.usingSetVisibility = true;
76 75
77 viewportChanged(); 76 viewportChanged();
78 } 77 }
79 78
80 SoftwareRenderer::~SoftwareRenderer() 79 SoftwareRenderer::~SoftwareRenderer()
81 { 80 {
82 } 81 }
83 82
84 const RendererCapabilities& SoftwareRenderer::capabilities() const 83 const RendererCapabilities& SoftwareRenderer::capabilities() const
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 } 377 }
379 378
380 void SoftwareRenderer::setVisible(bool visible) 379 void SoftwareRenderer::setVisible(bool visible)
381 { 380 {
382 if (m_visible == visible) 381 if (m_visible == visible)
383 return; 382 return;
384 m_visible = visible; 383 m_visible = visible;
385 } 384 }
386 385
387 } // namespace cc 386 } // namespace cc
OLDNEW
« cc/DEPS ('K') | « cc/single_thread_proxy.cc ('k') | cc/software_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698