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

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

Issue 11475017: Revert 171569 as it broke some browser_tests on win_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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 <string>
9
10 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
11 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
12 10
13 namespace gfx { 11 namespace gfx {
14 class Size; 12 class Size;
15 } 13 }
16 14
17 namespace ui { 15 namespace ui {
18 class ContextFactory; 16 class ContextFactory;
19 class Texture; 17 class Texture;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() = 0; 66 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() = 0;
69 67
70 // Destroys a shared surface handle. 68 // Destroys a shared surface handle.
71 virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0; 69 virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0;
72 70
73 // Creates a transport texture of a given size and scale factor, and using the 71 // Creates a transport texture of a given size and scale factor, and using the
74 // opaque handle sent by the GPU process. 72 // opaque handle sent by the GPU process.
75 virtual scoped_refptr<ui::Texture> CreateTransportClient( 73 virtual scoped_refptr<ui::Texture> CreateTransportClient(
76 const gfx::Size& size, 74 const gfx::Size& size,
77 float device_scale_factor, 75 float device_scale_factor,
78 const std::string& mailbox_name) = 0; 76 uint64 transport_handle) = 0;
79 77
80 // Variant of CreateTransportClient() that deletes the texture on the GPU when 78 // Variant of CreateTransportClient() that deletes the texture on the GPU when
81 // the returned value is deleted. 79 // the returned value is deleted.
82 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( 80 virtual scoped_refptr<ui::Texture> CreateOwnedTexture(
83 const gfx::Size& size, 81 const gfx::Size& size,
84 float device_scale_factor, 82 float device_scale_factor,
85 unsigned int texture_id) = 0; 83 unsigned int texture_id) = 0;
86 84
87 // Gets a GLHelper instance, associated with the shared context. This 85 // Gets a GLHelper instance, associated with the shared context. This
88 // GLHelper will get destroyed whenever the shared context is lost 86 // GLHelper will get destroyed whenever the shared context is lost
89 // (ImageTransportFactoryObserver::OnLostResources is called). 87 // (ImageTransportFactoryObserver::OnLostResources is called).
90 virtual GLHelper* GetGLHelper() = 0; 88 virtual GLHelper* GetGLHelper() = 0;
91 89
92 // Inserts a SyncPoint into the shared context. 90 // Inserts a SyncPoint into the shared context.
93 virtual uint32 InsertSyncPoint() = 0; 91 virtual uint32 InsertSyncPoint() = 0;
94 92
95 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; 93 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0;
96 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; 94 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0;
97 }; 95 };
98 96
99 } // namespace content 97 } // namespace content
100 98
101 #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 | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698