| 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 #ifndef TextureCopier_h | 5 #ifndef TextureCopier_h |
| 6 #define TextureCopier_h | 6 #define TextureCopier_h |
| 7 | 7 |
| 8 #include "GraphicsContext3D.h" | 8 #include "GraphicsContext3D.h" |
| 9 #include "ProgramBinding.h" | 9 #include "ProgramBinding.h" |
| 10 #include "ShaderChromium.h" | 10 #include "ShaderChromium.h" |
| 11 #include <wtf/OwnPtr.h> | 11 #include <wtf/OwnPtr.h> |
| 12 #include <wtf/PassOwnPtr.h> | 12 #include <wtf/PassOwnPtr.h> |
| 13 #include <wtf/Noncopyable.h> | 13 #include <wtf/Noncopyable.h> |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebGraphicsContext3D; | 16 class WebGraphicsContext3D; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace WebCore { | 19 namespace cc { |
| 20 class IntSize; | 20 class IntSize; |
| 21 | 21 |
| 22 class TextureCopier { | 22 class TextureCopier { |
| 23 public: | 23 public: |
| 24 struct Parameters { | 24 struct Parameters { |
| 25 unsigned sourceTexture; | 25 unsigned sourceTexture; |
| 26 unsigned destTexture; | 26 unsigned destTexture; |
| 27 IntSize size; | 27 IntSize size; |
| 28 }; | 28 }; |
| 29 // Copy the base level contents of |sourceTexture| to |destTexture|. Both te
xture objects | 29 // Copy the base level contents of |sourceTexture| to |destTexture|. Both te
xture objects |
| (...skipping 30 matching lines...) Expand all Loading... |
| 60 Platform3DObject m_positionBuffer; | 60 Platform3DObject m_positionBuffer; |
| 61 OwnPtr<BlitProgram> m_blitProgram; | 61 OwnPtr<BlitProgram> m_blitProgram; |
| 62 bool m_usingBindUniforms; | 62 bool m_usingBindUniforms; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif // USE(ACCELERATED_COMPOSITING) | 65 #endif // USE(ACCELERATED_COMPOSITING) |
| 66 | 66 |
| 67 } | 67 } |
| 68 | 68 |
| 69 #endif | 69 #endif |
| OLD | NEW |