| OLD | NEW |
| 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 #include "cc/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 return; | 2187 return; |
| 2188 | 2188 |
| 2189 FlushTextureQuadCache(); | 2189 FlushTextureQuadCache(); |
| 2190 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); | 2190 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); |
| 2191 is_scissor_enabled_ = false; | 2191 is_scissor_enabled_ = false; |
| 2192 } | 2192 } |
| 2193 | 2193 |
| 2194 void GLRenderer::CopyCurrentRenderPassToBitmap( | 2194 void GLRenderer::CopyCurrentRenderPassToBitmap( |
| 2195 DrawingFrame* frame, | 2195 DrawingFrame* frame, |
| 2196 scoped_ptr<CopyOutputRequest> request) { | 2196 scoped_ptr<CopyOutputRequest> request) { |
| 2197 TRACE_EVENT0("cc", "GLRenderer::CopyCurrentRenderPassToBitmap"); |
| 2197 gfx::Rect copy_rect = frame->current_render_pass->output_rect; | 2198 gfx::Rect copy_rect = frame->current_render_pass->output_rect; |
| 2198 if (request->has_area()) | 2199 if (request->has_area()) |
| 2199 copy_rect.Intersect(request->area()); | 2200 copy_rect.Intersect(request->area()); |
| 2200 GetFramebufferPixelsAsync(copy_rect, request.Pass()); | 2201 GetFramebufferPixelsAsync(copy_rect, request.Pass()); |
| 2201 } | 2202 } |
| 2202 | 2203 |
| 2203 void GLRenderer::ToGLMatrix(float* gl_matrix, const gfx::Transform& transform) { | 2204 void GLRenderer::ToGLMatrix(float* gl_matrix, const gfx::Transform& transform) { |
| 2204 transform.matrix().asColMajorf(gl_matrix); | 2205 transform.matrix().asColMajorf(gl_matrix); |
| 2205 } | 2206 } |
| 2206 | 2207 |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3195 context_support_->ScheduleOverlayPlane( | 3196 context_support_->ScheduleOverlayPlane( |
| 3196 overlay.plane_z_order, | 3197 overlay.plane_z_order, |
| 3197 overlay.transform, | 3198 overlay.transform, |
| 3198 pending_overlay_resources_.back()->texture_id(), | 3199 pending_overlay_resources_.back()->texture_id(), |
| 3199 overlay.display_rect, | 3200 overlay.display_rect, |
| 3200 overlay.uv_rect); | 3201 overlay.uv_rect); |
| 3201 } | 3202 } |
| 3202 } | 3203 } |
| 3203 | 3204 |
| 3204 } // namespace cc | 3205 } // namespace cc |
| OLD | NEW |