| 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 #include "cc/texture_copier.h" | 5 #include "cc/output/texture_copier.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "cc/gl_renderer.h" // For the GLC() macro. | 9 #include "cc/output/gl_renderer.h" // For the GLC() macro. |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 11 #include "third_party/khronos/GLES2/gl2.h" | 11 #include "third_party/khronos/GLES2/gl2.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 AcceleratedTextureCopier::AcceleratedTextureCopier( | 15 AcceleratedTextureCopier::AcceleratedTextureCopier( |
| 16 WebKit::WebGraphicsContext3D* context, | 16 WebKit::WebGraphicsContext3D* context, |
| 17 bool using_bind_uniforms) | 17 bool using_bind_uniforms) |
| 18 : context_(context), using_bind_uniforms_(using_bind_uniforms) { | 18 : context_(context), using_bind_uniforms_(using_bind_uniforms) { |
| 19 DCHECK(context_); | 19 DCHECK(context_); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0)); | 106 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0)); |
| 107 | 107 |
| 108 GLC(context_, context_->enable(GL_SCISSOR_TEST)); | 108 GLC(context_, context_->enable(GL_SCISSOR_TEST)); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void AcceleratedTextureCopier::Flush() { | 111 void AcceleratedTextureCopier::Flush() { |
| 112 GLC(context_, context_->flush()); | 112 GLC(context_, context_->flush()); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace cc | 115 } // namespace cc |
| OLD | NEW |