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/output/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/output/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/public/platform/WebGraphicsContext3D.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 int highp_threshold_min) | 18 int highp_threshold_min) |
19 : context_(context) | 19 : context_(context) |
20 , using_bind_uniforms_(using_bind_uniforms) | 20 , using_bind_uniforms_(using_bind_uniforms) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0)); | 124 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0)); |
125 | 125 |
126 GLC(context_, context_->enable(GL_SCISSOR_TEST)); | 126 GLC(context_, context_->enable(GL_SCISSOR_TEST)); |
127 } | 127 } |
128 | 128 |
129 void AcceleratedTextureCopier::Flush() { | 129 void AcceleratedTextureCopier::Flush() { |
130 GLC(context_, context_->flush()); | 130 GLC(context_, context_->flush()); |
131 } | 131 } |
132 | 132 |
133 } // namespace cc | 133 } // namespace cc |
OLD | NEW |