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

Side by Side Diff: cc/TextureCopier.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 | Annotate | Revision Log
« no previous file with comments | « cc/TextureCopier.h ('k') | cc/TextureLayerChromium.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 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 "TextureCopier.h" 7 #include "TextureCopier.h"
8 8
9 #include "CCRendererGL.h" // For the GLC() macro. 9 #include "CCRendererGL.h" // For the GLC() macro.
10 #include "GraphicsContext3D.h" 10 #include "GraphicsContext3D.h"
11 #include "TraceEvent.h" 11 #include "TraceEvent.h"
12 #include <public/WebGraphicsContext3D.h> 12 #include <public/WebGraphicsContext3D.h>
13 13
14 namespace WebCore { 14 namespace cc {
15 15
16 #if USE(ACCELERATED_COMPOSITING) 16 #if USE(ACCELERATED_COMPOSITING)
17 AcceleratedTextureCopier::AcceleratedTextureCopier(WebKit::WebGraphicsContext3D* context, bool usingBindUniforms) 17 AcceleratedTextureCopier::AcceleratedTextureCopier(WebKit::WebGraphicsContext3D* context, bool usingBindUniforms)
18 : m_context(context) 18 : m_context(context)
19 , m_usingBindUniforms(usingBindUniforms) 19 , m_usingBindUniforms(usingBindUniforms)
20 { 20 {
21 ASSERT(m_context); 21 ASSERT(m_context);
22 GLC(m_context, m_fbo = m_context->createFramebuffer()); 22 GLC(m_context, m_fbo = m_context->createFramebuffer());
23 GLC(m_context, m_positionBuffer = m_context->createBuffer()); 23 GLC(m_context, m_positionBuffer = m_context->createBuffer());
24 24
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 void AcceleratedTextureCopier::flush() 94 void AcceleratedTextureCopier::flush()
95 { 95 {
96 GLC(m_context, m_context->flush()); 96 GLC(m_context, m_context->flush());
97 } 97 }
98 98
99 } 99 }
100 100
101 #endif // USE(ACCELERATED_COMPOSITING) 101 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/TextureCopier.h ('k') | cc/TextureLayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698