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

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

Issue 12377013: Add export directives needed by Chromium WM project. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/common/content_export.h"
11 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Size; 15 class Size;
15 } 16 }
16 17
17 namespace ui { 18 namespace ui {
18 class ContextFactory; 19 class ContextFactory;
19 class Texture; 20 class Texture;
20 } 21 }
(...skipping 18 matching lines...) Expand all
39 // return newly recreated, valid resources. 40 // return newly recreated, valid resources.
40 virtual void OnLostResources() = 0; 41 virtual void OnLostResources() = 0;
41 }; 42 };
42 43
43 // This class provides the interface for creating the support for the 44 // This class provides the interface for creating the support for the
44 // cross-process image transport, both for creating the shared surface handle 45 // cross-process image transport, both for creating the shared surface handle
45 // (destination surface for the GPU process) and the transport client (logic for 46 // (destination surface for the GPU process) and the transport client (logic for
46 // using that surface as a texture). The factory is a process-wide singleton. 47 // using that surface as a texture). The factory is a process-wide singleton.
47 // As this is intimately linked to the type of 3D context we use (in-process or 48 // As this is intimately linked to the type of 3D context we use (in-process or
48 // command-buffer), implementations of this also implement ui::ContextFactory. 49 // command-buffer), implementations of this also implement ui::ContextFactory.
49 class ImageTransportFactory { 50 class CONTENT_EXPORT ImageTransportFactory {
50 public: 51 public:
51 virtual ~ImageTransportFactory() {} 52 virtual ~ImageTransportFactory() {}
52 53
53 // Initialize the global transport factory. 54 // Initialize the global transport factory.
54 static void Initialize(); 55 static void Initialize();
55 56
56 // Terminates the global transport factory. 57 // Terminates the global transport factory.
57 static void Terminate(); 58 static void Terminate();
58 59
59 // Gets the factory instance. 60 // Gets the factory instance.
(...skipping 29 matching lines...) Expand all
89 // Inserts a SyncPoint into the shared context. 90 // Inserts a SyncPoint into the shared context.
90 virtual uint32 InsertSyncPoint() = 0; 91 virtual uint32 InsertSyncPoint() = 0;
91 92
92 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; 93 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0;
93 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; 94 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0;
94 }; 95 };
95 96
96 } // namespace content 97 } // namespace content
97 98
98 #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/browser_gpu_channel_host_factory.h ('k') | content/common/gpu/client/gl_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698