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

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

Issue 10831169: Delay GpuCommandBufferStub::AddDestructionObserver until we need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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/common/gpu/texture_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 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Make the surface's context current. 125 // Make the surface's context current.
126 bool MakeCurrent(); 126 bool MakeCurrent();
127 127
128 // Set the default swap interval on the surface. 128 // Set the default swap interval on the surface.
129 static void SetSwapInterval(gfx::GLContext* context); 129 static void SetSwapInterval(gfx::GLContext* context);
130 130
131 void Suspend(); 131 void Suspend();
132 132
133 GpuChannelManager* manager() const { return manager_; } 133 GpuChannelManager* manager() const { return manager_; }
134 GpuCommandBufferStub* stub() const { return stub_.get(); }
134 135
135 private: 136 private:
136 gpu::GpuScheduler* Scheduler(); 137 gpu::GpuScheduler* Scheduler();
137 gpu::gles2::GLES2Decoder* Decoder(); 138 gpu::gles2::GLES2Decoder* Decoder();
138 139
139 // IPC::Message handlers. 140 // IPC::Message handlers.
140 void OnBufferPresented(uint32 sync_point); 141 void OnBufferPresented(uint32 sync_point);
141 void OnResizeViewACK(); 142 void OnResizeViewACK();
142 void OnSetFrontSurfaceIsProtected(bool is_protected, 143 void OnSetFrontSurfaceIsProtected(bool is_protected,
143 uint32 protection_state_id); 144 uint32 protection_state_id);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 gfx::Size new_size_; 189 gfx::Size new_size_;
189 bool transport_; 190 bool transport_;
190 bool did_set_swap_interval_; 191 bool did_set_swap_interval_;
191 192
192 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 193 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
193 }; 194 };
194 195
195 #endif // defined(ENABLE_GPU) 196 #endif // defined(ENABLE_GPU)
196 197
197 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 198 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/texture_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698