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

Side by Side 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: Introduce device_scale_factor to ui::Texture 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_IMAGE_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 unsigned int texture_id) = 0; 82 unsigned int texture_id) = 0;
83 83
84 // Gets a GLHelper instance, associated with the shared context. This 84 // Gets a GLHelper instance, associated with the shared context. This
85 // GLHelper will get destroyed whenever the shared context is lost 85 // GLHelper will get destroyed whenever the shared context is lost
86 // (ImageTransportFactoryObserver::OnLostResources is called). 86 // (ImageTransportFactoryObserver::OnLostResources is called).
87 virtual content::GLHelper* GetGLHelper() = 0; 87 virtual content::GLHelper* GetGLHelper() = 0;
88 88
89 // Inserts a SyncPoint into the shared context. 89 // Inserts a SyncPoint into the shared context.
90 virtual uint32 InsertSyncPoint() = 0; 90 virtual uint32 InsertSyncPoint() = 0;
91 91
92 // Sets the device scale factor.
93 virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
piman 2012/09/21 00:59:34 Because ImageTransportFactory is a singleton, that
Jun Mukai 2012/09/21 02:28:52 removed this and added an argument to CreateTransp
94
92 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; 95 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0;
93 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; 96 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0;
94 }; 97 };
95 98
96 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ 99 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_
OLDNEW
« 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