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

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

Issue 802113002: Revert "Revert of Extract WebGraphicsContext3DImpl from webkit/common/gpu. (patchset #12 id:220001 … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 6 years 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
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | content/common/BUILD.gn » ('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 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 "base/observer_list.h" 7 #include "base/observer_list.h"
8 #include "content/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h" 8 #include "content/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h"
9 #include "content/browser/android/in_process/synchronous_compositor_impl.h" 9 #include "content/browser/android/in_process/synchronous_compositor_impl.h"
10 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h" 10 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h"
(...skipping 17 matching lines...) Expand all
28 blink::WebGraphicsContext3D::Attributes attributes; 28 blink::WebGraphicsContext3D::Attributes attributes;
29 attributes.antialias = false; 29 attributes.antialias = false;
30 attributes.depth = false; 30 attributes.depth = false;
31 attributes.stencil = false; 31 attributes.stencil = false;
32 attributes.shareResources = true; 32 attributes.shareResources = true;
33 attributes.noAutomaticFlushes = true; 33 attributes.noAutomaticFlushes = true;
34 34
35 return attributes; 35 return attributes;
36 } 36 }
37 37
38 using gpu_blink::WebGraphicsContext3DImpl;
38 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; 39 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
39 using webkit::gpu::WebGraphicsContext3DImpl;
40 40
41 scoped_ptr<gpu::GLInProcessContext> CreateOffscreenContext( 41 scoped_ptr<gpu::GLInProcessContext> CreateOffscreenContext(
42 const blink::WebGraphicsContext3D::Attributes& attributes) { 42 const blink::WebGraphicsContext3D::Attributes& attributes) {
43 const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu; 43 const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu;
44 44
45 gpu::gles2::ContextCreationAttribHelper in_process_attribs; 45 gpu::gles2::ContextCreationAttribHelper in_process_attribs;
46 WebGraphicsContext3DImpl::ConvertAttributes( 46 WebGraphicsContext3DImpl::ConvertAttributes(
47 attributes, &in_process_attribs); 47 attributes, &in_process_attribs);
48 in_process_attribs.lose_context_when_out_of_memory = true; 48 in_process_attribs.lose_context_when_out_of_memory = true;
49 49
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 DCHECK(!service_.get()); 302 DCHECK(!service_.get());
303 service_ = service; 303 service_ = service;
304 } 304 }
305 305
306 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( 306 void SynchronousCompositorFactoryImpl::SetRecordFullDocument(
307 bool record_full_document) { 307 bool record_full_document) {
308 record_full_layer_ = record_full_document; 308 record_full_layer_ = record_full_document;
309 } 309 }
310 310
311 } // namespace content 311 } // namespace content
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698