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

Side by Side Diff: content/common/gpu/image_transport_surface.h

Issue 10071038: RefCounted types should not have public destructors, content/browser part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright bump Created 8 years, 7 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 | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/image_transport_surface.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_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // An implementation of ImageTransportSurface that implements GLSurface through 151 // An implementation of ImageTransportSurface that implements GLSurface through
152 // GLSurfaceAdapter, thereby forwarding GLSurface methods through to it. 152 // GLSurfaceAdapter, thereby forwarding GLSurface methods through to it.
153 class PassThroughImageTransportSurface 153 class PassThroughImageTransportSurface
154 : public gfx::GLSurfaceAdapter, 154 : public gfx::GLSurfaceAdapter,
155 public ImageTransportSurface { 155 public ImageTransportSurface {
156 public: 156 public:
157 PassThroughImageTransportSurface(GpuChannelManager* manager, 157 PassThroughImageTransportSurface(GpuChannelManager* manager,
158 GpuCommandBufferStub* stub, 158 GpuCommandBufferStub* stub,
159 gfx::GLSurface* surface, 159 gfx::GLSurface* surface,
160 bool transport); 160 bool transport);
161 virtual ~PassThroughImageTransportSurface();
162 161
163 // GLSurface implementation. 162 // GLSurface implementation.
164 virtual bool Initialize() OVERRIDE; 163 virtual bool Initialize() OVERRIDE;
165 virtual void Destroy() OVERRIDE; 164 virtual void Destroy() OVERRIDE;
166 virtual bool SwapBuffers() OVERRIDE; 165 virtual bool SwapBuffers() OVERRIDE;
167 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 166 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
168 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE; 167 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE;
169 168
170 // ImageTransportSurface implementation. 169 // ImageTransportSurface implementation.
171 virtual void OnNewSurfaceACK( 170 virtual void OnNewSurfaceACK(
172 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE; 171 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE;
173 virtual void OnBuffersSwappedACK() OVERRIDE; 172 virtual void OnBuffersSwappedACK() OVERRIDE;
174 virtual void OnPostSubBufferACK() OVERRIDE; 173 virtual void OnPostSubBufferACK() OVERRIDE;
175 virtual void OnResizeViewACK() OVERRIDE; 174 virtual void OnResizeViewACK() OVERRIDE;
176 virtual void OnResize(gfx::Size size) OVERRIDE; 175 virtual void OnResize(gfx::Size size) OVERRIDE;
177 176
177 protected:
178 virtual ~PassThroughImageTransportSurface();
179
178 private: 180 private:
179 scoped_ptr<ImageTransportHelper> helper_; 181 scoped_ptr<ImageTransportHelper> helper_;
180 gfx::Size new_size_; 182 gfx::Size new_size_;
181 bool transport_; 183 bool transport_;
182 bool did_set_swap_interval_; 184 bool did_set_swap_interval_;
183 185
184 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 186 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
185 }; 187 };
186 188
187 #endif // defined(ENABLE_GPU) 189 #endif // defined(ENABLE_GPU)
188 190
189 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 191 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698