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

Side by Side Diff: cc/CCRendererGL.cpp

Issue 10918258: Add CC software renderer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@gladapter
Patch Set: Fix license headers Created 8 years, 3 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
« no previous file with comments | « cc/CCRendererGL.h ('k') | cc/CCRendererSoftware.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 5
6 #include "config.h" 6 #include "config.h"
7 7
8 #if USE(ACCELERATED_COMPOSITING) 8 #if USE(ACCELERATED_COMPOSITING)
9 #include "CCRendererGL.h" 9 #include "CCRendererGL.h"
10 10
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 936
937 void CCRendererGL::finishDrawingFrame(DrawingFrame& frame) 937 void CCRendererGL::finishDrawingFrame(DrawingFrame& frame)
938 { 938 {
939 m_currentFramebufferLock.clear(); 939 m_currentFramebufferLock.clear();
940 m_swapBufferRect.unite(enclosingIntRect(frame.rootDamageRect)); 940 m_swapBufferRect.unite(enclosingIntRect(frame.rootDamageRect));
941 941
942 GLC(m_context, m_context->disable(GraphicsContext3D::SCISSOR_TEST)); 942 GLC(m_context, m_context->disable(GraphicsContext3D::SCISSOR_TEST));
943 GLC(m_context, m_context->disable(GraphicsContext3D::BLEND)); 943 GLC(m_context, m_context->disable(GraphicsContext3D::BLEND));
944 } 944 }
945 945
946 bool CCRendererGL::flippedFramebuffer() const
947 {
948 return true;
949 }
950
946 void CCRendererGL::toGLMatrix(float* flattened, const WebTransformationMatrix& m ) 951 void CCRendererGL::toGLMatrix(float* flattened, const WebTransformationMatrix& m )
947 { 952 {
948 flattened[0] = m.m11(); 953 flattened[0] = m.m11();
949 flattened[1] = m.m12(); 954 flattened[1] = m.m12();
950 flattened[2] = m.m13(); 955 flattened[2] = m.m13();
951 flattened[3] = m.m14(); 956 flattened[3] = m.m14();
952 flattened[4] = m.m21(); 957 flattened[4] = m.m21();
953 flattened[5] = m.m22(); 958 flattened[5] = m.m22();
954 flattened[6] = m.m23(); 959 flattened[6] = m.m23();
955 flattened[7] = m.m24(); 960 flattened[7] = m.m24();
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 } 1518 }
1514 1519
1515 bool CCRendererGL::isContextLost() 1520 bool CCRendererGL::isContextLost()
1516 { 1521 {
1517 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO R); 1522 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO R);
1518 } 1523 }
1519 1524
1520 } // namespace cc 1525 } // namespace cc
1521 1526
1522 #endif // USE(ACCELERATED_COMPOSITING) 1527 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/CCRendererGL.h ('k') | cc/CCRendererSoftware.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698