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

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

Issue 8587049: Revert 110542 - Fix link issue when component=shared_library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h"
11 #include "ui/gfx/compositor/compositor.h" 10 #include "ui/gfx/compositor/compositor.h"
12 #include "ui/gfx/surface/transport_dib.h" 11 #include "ui/gfx/surface/transport_dib.h"
13 12
14 // Helper class for storing image data from the GPU process renderered 13 // Helper class for storing image data from the GPU process renderered
15 // on behalf of the RWHVV. It assumes that GL context that will display 14 // on behalf of the RWHVV. It assumes that GL context that will display
16 // the image data is current when an instance of this object is created 15 // the image data is current when an instance of this object is created
17 // or destroyed. 16 // or destroyed.
18 class CONTENT_EXPORT AcceleratedSurfaceContainerLinux { 17 class AcceleratedSurfaceContainerLinux {
19 public: 18 public:
20 virtual ~AcceleratedSurfaceContainerLinux() { } 19 virtual ~AcceleratedSurfaceContainerLinux() { }
21 virtual void AddRef() = 0; 20 virtual void AddRef() = 0;
22 virtual void Release() = 0; 21 virtual void Release() = 0;
23 22
24 // Initialize the surface container, and returns an ID for it. 23 // Initialize the surface container, and returns an ID for it.
25 // The |surface_id| given to this function may be modified, and the modified 24 // The |surface_id| given to this function may be modified, and the modified
26 // value should be used to identify the object. 25 // value should be used to identify the object.
27 virtual bool Initialize(uint64* surface_id) = 0; 26 virtual bool Initialize(uint64* surface_id) = 0;
28 27
29 // Some implementations of this class use shared memory, this is the handle 28 // Some implementations of this class use shared memory, this is the handle
30 // to the shared buffer, which is part of the surface container. 29 // to the shared buffer, which is part of the surface container.
31 virtual TransportDIB::Handle Handle() const = 0; 30 virtual TransportDIB::Handle Handle() const = 0;
32 31
33 virtual ui::Texture* GetTexture() = 0; 32 virtual ui::Texture* GetTexture() = 0;
34 33
35 static AcceleratedSurfaceContainerLinux* Create(const gfx::Size& size); 34 static AcceleratedSurfaceContainerLinux* Create(const gfx::Size& size);
36 }; 35 };
37 36
38 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ 37 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698