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

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

Issue 10984004: Use a singleton 1x1 offscreen surface for all TextureImageTransportSurface instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor polish - consistently use the get() accessor. Created 8 years, 2 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_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool backbuffer_suggested_allocation_; 103 bool backbuffer_suggested_allocation_;
104 bool frontbuffer_suggested_allocation_; 104 bool frontbuffer_suggested_allocation_;
105 105
106 bool frontbuffer_is_protected_; 106 bool frontbuffer_is_protected_;
107 uint32 protection_state_id_; 107 uint32 protection_state_id_;
108 108
109 scoped_ptr<ImageTransportHelper> helper_; 109 scoped_ptr<ImageTransportHelper> helper_;
110 gfx::GLSurfaceHandle handle_; 110 gfx::GLSurfaceHandle handle_;
111 GpuCommandBufferStub* parent_stub_; 111 GpuCommandBufferStub* parent_stub_;
112 112
113 // The offscreeb surface used to make the context current. However note that 113 // The offscreen surface used to make the context current. However note that
114 // the actual rendering is always redirected to an FBO. 114 // the actual rendering is always redirected to an FBO.
115 scoped_refptr<GLSurface> surface_; 115 scoped_refptr<GLSurface> surface_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 117 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
118 }; 118 };
119 119
120 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 120 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/texture_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698