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

Unified Diff: content/browser/renderer_host/image_transport_factory.h

Issue 10941017: Change the scale factor of texture_size from the layer's one to an estimation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/image_transport_factory.h
diff --git a/content/browser/renderer_host/image_transport_factory.h b/content/browser/renderer_host/image_transport_factory.h
index 597ee71f1c44ec53d5cfae4db152314122a9bdab..44b10b0e1c984474568b0ab3d0568beef58cbd17 100644
--- a/content/browser/renderer_host/image_transport_factory.h
+++ b/content/browser/renderer_host/image_transport_factory.h
@@ -69,16 +69,18 @@ class ImageTransportFactory {
// Destroys a shared surface handle.
virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0;
- // Creates a transport texture of a given size, and using the opaque handle
- // sent by the GPU process.
+ // Creates a transport texture of a given size and scale factor, and using the
+ // opaque handle sent by the GPU process.
virtual scoped_refptr<ui::Texture> CreateTransportClient(
const gfx::Size& size,
+ float device_scale_factor,
uint64 transport_handle) = 0;
// Variant of CreateTransportClient() that deletes the texture on the GPU when
// the returned value is deleted.
virtual scoped_refptr<ui::Texture> CreateOwnedTexture(
const gfx::Size& size,
+ float device_scale_factor,
unsigned int texture_id) = 0;
// Gets a GLHelper instance, associated with the shared context. This
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698