OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/common/gpu/client/gl_helper.h" | 5 #include "content/common/gpu/client/gl_helper.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
686 const base::Callback<void(bool)>& callback) { | 686 const base::Callback<void(bool)>& callback) { |
687 InitCopyTextToImpl(); | 687 InitCopyTextToImpl(); |
688 copy_texture_to_impl_->CropScaleReadbackAndCleanTexture( | 688 copy_texture_to_impl_->CropScaleReadbackAndCleanTexture( |
689 src_texture, | 689 src_texture, |
690 src_size, | 690 src_size, |
691 src_subrect, | 691 src_subrect, |
692 dst_size, | 692 dst_size, |
693 out, | 693 out, |
694 config, | 694 config, |
695 callback, | 695 callback, |
696 GLHelper::SCALER_QUALITY_FAST); | 696 GLHelper::SCALER_QUALITY_GOOD); |
pfeldman
2014/05/21 14:09:17
Wouldn't this affect screencast performance though
no sievers
2014/05/21 16:34:25
Maybe just add this as an argument so you don't ri
| |
697 } | 697 } |
698 | 698 |
699 void GLHelper::CropScaleReadbackAndCleanMailbox( | 699 void GLHelper::CropScaleReadbackAndCleanMailbox( |
700 const gpu::Mailbox& src_mailbox, | 700 const gpu::Mailbox& src_mailbox, |
701 uint32 sync_point, | 701 uint32 sync_point, |
702 const gfx::Size& src_size, | 702 const gfx::Size& src_size, |
703 const gfx::Rect& src_subrect, | 703 const gfx::Rect& src_subrect, |
704 const gfx::Size& dst_size, | 704 const gfx::Size& dst_size, |
705 unsigned char* out, | 705 unsigned char* out, |
706 const SkBitmap::Config bitmap_config, | 706 const SkBitmap::Config bitmap_config, |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1250 return copy_texture_to_impl_->CreateReadbackPipelineYUV(quality, | 1250 return copy_texture_to_impl_->CreateReadbackPipelineYUV(quality, |
1251 src_size, | 1251 src_size, |
1252 src_subrect, | 1252 src_subrect, |
1253 dst_size, | 1253 dst_size, |
1254 dst_subrect, | 1254 dst_subrect, |
1255 flip_vertically, | 1255 flip_vertically, |
1256 use_mrt); | 1256 use_mrt); |
1257 } | 1257 } |
1258 | 1258 |
1259 } // namespace content | 1259 } // namespace content |
OLD | NEW |