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

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

Issue 10824270: Revert 151153 - Partial revert of 146621 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle( 69 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle(
70 ui::Compositor* compositor) = 0; 70 ui::Compositor* compositor) = 0;
71 71
72 // Destroys a shared surface handle. 72 // Destroys a shared surface handle.
73 virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0; 73 virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0;
74 74
75 // Creates a transport texture of a given size, and using the opaque handle 75 // Creates a transport texture of a given size, and using the opaque handle
76 // sent by the GPU process. 76 // sent by the GPU process.
77 virtual scoped_refptr<ui::Texture> CreateTransportClient( 77 virtual scoped_refptr<ui::Texture> CreateTransportClient(
78 const gfx::Size& size, 78 const gfx::Size& size,
79 uint64 transport_handle) = 0; 79 uint64 transport_handle,
80 ui::Compositor* compositor) = 0;
80 81
81 // Gets a GLHelper instance, associated with the compositor context. This 82 // Gets a GLHelper instance, associated with the compositor context. This
82 // GLHelper will get destroyed whenever the context is lost ( 83 // GLHelper will get destroyed whenever the context is lost (
83 virtual content::GLHelper* GetGLHelper(ui::Compositor* compositor) = 0; 84 virtual content::GLHelper* GetGLHelper(ui::Compositor* compositor) = 0;
84 85
85 // Inserts a SyncPoint into the compositor's context. 86 // Inserts a SyncPoint into the compositor's context.
86 virtual uint32 InsertSyncPoint(ui::Compositor* compositor) = 0; 87 virtual uint32 InsertSyncPoint(ui::Compositor* compositor) = 0;
87 88
88 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; 89 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0;
89 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; 90 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0;
90 }; 91 };
91 92
92 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ 93 #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