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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 470973002: gpu: Remove WebGraphicsContext3D::makeContextCurrent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WebGraphicsContext3D::makeContextCurrent() Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h" 5 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h"
6 6
7 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h" 7 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/renderer/gpu/frame_swap_message_queue.h" 9 #include "content/renderer/gpu/frame_swap_message_queue.h"
10 #include "gpu/command_buffer/client/gl_in_process_context.h" 10 #include "gpu/command_buffer/client/gl_in_process_context.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 SynchronousCompositorFactoryImpl::CreateStreamTextureFactory(int frame_id) { 200 SynchronousCompositorFactoryImpl::CreateStreamTextureFactory(int frame_id) {
201 scoped_refptr<StreamTextureFactorySynchronousImpl> factory( 201 scoped_refptr<StreamTextureFactorySynchronousImpl> factory(
202 StreamTextureFactorySynchronousImpl::Create( 202 StreamTextureFactorySynchronousImpl::Create(
203 base::Bind( 203 base::Bind(
204 &SynchronousCompositorFactoryImpl::TryCreateStreamTextureFactory, 204 &SynchronousCompositorFactoryImpl::TryCreateStreamTextureFactory,
205 base::Unretained(this)), 205 base::Unretained(this)),
206 frame_id)); 206 frame_id));
207 return factory; 207 return factory;
208 } 208 }
209 209
210 blink::WebGraphicsContext3D* 210 webkit::gpu::WebGraphicsContext3DImpl*
danakj 2014/08/15 15:28:44 Why the change in types from WGC3D to WGC3DImpl? T
dshwang 2014/08/15 16:02:32 I add BindToCurrentThread in WebGraphicsContext3DI
211 SynchronousCompositorFactoryImpl::CreateOffscreenGraphicsContext3D( 211 SynchronousCompositorFactoryImpl::CreateOffscreenGraphicsContext3D(
212 const blink::WebGraphicsContext3D::Attributes& attributes) { 212 const blink::WebGraphicsContext3D::Attributes& attributes) {
213 return WrapContextWithAttributes(CreateOffscreenContext(attributes), 213 return WrapContextWithAttributes(CreateOffscreenContext(attributes),
214 attributes).release(); 214 attributes).release();
215 } 215 }
216 216
217 void SynchronousCompositorFactoryImpl::CompositorInitializedHardwareDraw() { 217 void SynchronousCompositorFactoryImpl::CompositorInitializedHardwareDraw() {
218 base::AutoLock lock(num_hardware_compositor_lock_); 218 base::AutoLock lock(num_hardware_compositor_lock_);
219 num_hardware_compositors_++; 219 num_hardware_compositors_++;
220 } 220 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 DCHECK(!service_); 258 DCHECK(!service_);
259 service_ = service; 259 service_ = service;
260 } 260 }
261 261
262 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( 262 void SynchronousCompositorFactoryImpl::SetRecordFullDocument(
263 bool record_full_document) { 263 bool record_full_document) {
264 record_full_layer_ = record_full_document; 264 record_full_layer_ = record_full_document;
265 } 265 }
266 266
267 } // namespace content 267 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698