Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 88033002: Add RGB565 Texture readback support in gl_helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for RGB565 format texture readback in gl_helper Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 void AttachLayers(); 256 void AttachLayers();
257 void RemoveLayers(); 257 void RemoveLayers();
258 258
259 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); 259 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata);
260 260
261 // Called after async screenshot task completes. Scales and crops the result 261 // Called after async screenshot task completes. Scales and crops the result
262 // of the copy. 262 // of the copy.
263 static void PrepareTextureCopyOutputResult( 263 static void PrepareTextureCopyOutputResult(
264 const gfx::Size& dst_size_in_pixel, 264 const gfx::Size& dst_size_in_pixel,
265 bool readback_config_rgb565,
265 const base::Callback<void(bool, const SkBitmap&)>& callback, 266 const base::Callback<void(bool, const SkBitmap&)>& callback,
266 scoped_ptr<cc::CopyOutputResult> result); 267 scoped_ptr<cc::CopyOutputResult> result);
267 static void PrepareBitmapCopyOutputResult( 268 static void PrepareBitmapCopyOutputResult(
268 const gfx::Size& dst_size_in_pixel, 269 const gfx::Size& dst_size_in_pixel,
269 const base::Callback<void(bool, const SkBitmap&)>& callback, 270 const base::Callback<void(bool, const SkBitmap&)>& callback,
270 scoped_ptr<cc::CopyOutputResult> result); 271 scoped_ptr<cc::CopyOutputResult> result);
271 272
272 // DevTools ScreenCast support for Android WebView. 273 // DevTools ScreenCast support for Android WebView.
273 void SynchronousCopyContents( 274 void SynchronousCopyContents(
274 const gfx::Rect& src_subrect_in_pixel, 275 const gfx::Rect& src_subrect_in_pixel,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 gfx::Size default_size_; 340 gfx::Size default_size_;
340 341
341 const bool using_synchronous_compositor_; 342 const bool using_synchronous_compositor_;
342 343
343 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 344 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
344 }; 345 };
345 346
346 } // namespace content 347 } // namespace content
347 348
348 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 349 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698