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) { |
| 865 if (readback_config_rgb565) { |
| 866 NOTIMPLEMENTED(); |
| 867 callback.Run(false, SkBitmap()); |
| 868 } |
864 base::ScopedClosureRunner scoped_callback_runner( | 869 base::ScopedClosureRunner scoped_callback_runner( |
865 base::Bind(callback, false, SkBitmap())); | 870 base::Bind(callback, false, SkBitmap())); |
866 if (!accelerated_surface_) | 871 if (!accelerated_surface_) |
867 return; | 872 return; |
868 | 873 |
869 if (dst_size.IsEmpty() || src_subrect.IsEmpty()) | 874 if (dst_size.IsEmpty() || src_subrect.IsEmpty()) |
870 return; | 875 return; |
871 | 876 |
872 ignore_result(scoped_callback_runner.Release()); | 877 ignore_result(scoped_callback_runner.Release()); |
873 accelerated_surface_->AsyncCopyTo(src_subrect, dst_size, callback); | 878 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); | 3218 return new RenderWidgetHostViewWin(widget); |
3214 } | 3219 } |
3215 | 3220 |
3216 // static | 3221 // static |
3217 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3222 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3218 blink::WebScreenInfo* results) { | 3223 blink::WebScreenInfo* results) { |
3219 GetScreenInfoForWindow(0, results); | 3224 GetScreenInfoForWindow(0, results); |
3220 } | 3225 } |
3221 | 3226 |
3222 } // namespace content | 3227 } // namespace content |
OLD | NEW |