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/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include <InputScope.h> | 7 #include <InputScope.h> |
8 #include <wtsapi32.h> | 8 #include <wtsapi32.h> |
9 #pragma comment(lib, "wtsapi32.lib") | 9 #pragma comment(lib, "wtsapi32.lib") |
10 | 10 |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
853 } | 853 } |
854 | 854 |
855 BackingStore* RenderWidgetHostViewWin::AllocBackingStore( | 855 BackingStore* RenderWidgetHostViewWin::AllocBackingStore( |
856 const gfx::Size& size) { | 856 const gfx::Size& size) { |
857 return new BackingStoreWin(render_widget_host_, size); | 857 return new BackingStoreWin(render_widget_host_, size); |
858 } | 858 } |
859 | 859 |
860 void RenderWidgetHostViewWin::CopyFromCompositingSurface( | 860 void RenderWidgetHostViewWin::CopyFromCompositingSurface( |
861 const gfx::Rect& src_subrect, | 861 const gfx::Rect& src_subrect, |
862 const gfx::Size& dst_size, | 862 const gfx::Size& dst_size, |
863 const base::Callback<void(bool, const SkBitmap&)>& callback) { | 863 const base::Callback<void(bool, const SkBitmap&)>& callback, |
864 bool readback_config_rgb565) { | |
piman
2014/01/09 18:12:15
Fail if readback_config_rgb565 is true?
sivag
2014/01/10 12:20:01
Done.
| |
864 base::ScopedClosureRunner scoped_callback_runner( | 865 base::ScopedClosureRunner scoped_callback_runner( |
865 base::Bind(callback, false, SkBitmap())); | 866 base::Bind(callback, false, SkBitmap())); |
866 if (!accelerated_surface_) | 867 if (!accelerated_surface_) |
867 return; | 868 return; |
868 | 869 |
869 if (dst_size.IsEmpty() || src_subrect.IsEmpty()) | 870 if (dst_size.IsEmpty() || src_subrect.IsEmpty()) |
870 return; | 871 return; |
871 | 872 |
872 ignore_result(scoped_callback_runner.Release()); | 873 ignore_result(scoped_callback_runner.Release()); |
873 accelerated_surface_->AsyncCopyTo(src_subrect, dst_size, callback); | 874 accelerated_surface_->AsyncCopyTo(src_subrect, dst_size, callback); |
(...skipping 2339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3213 return new RenderWidgetHostViewWin(widget); | 3214 return new RenderWidgetHostViewWin(widget); |
3214 } | 3215 } |
3215 | 3216 |
3216 // static | 3217 // static |
3217 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3218 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3218 blink::WebScreenInfo* results) { | 3219 blink::WebScreenInfo* results) { |
3219 GetScreenInfoForWindow(0, results); | 3220 GetScreenInfoForWindow(0, results); |
3220 } | 3221 } |
3221 | 3222 |
3222 } // namespace content | 3223 } // namespace content |
OLD | NEW |