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

Side by Side Diff: android_webview/browser/hardware_renderer.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
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 "android_webview/browser/hardware_renderer.h" 5 #include "android_webview/browser/hardware_renderer.h"
6 6
7 #include "android_webview/browser/aw_gl_surface.h" 7 #include "android_webview/browser/aw_gl_surface.h"
8 #include "android_webview/browser/deferred_gpu_command_service.h" 8 #include "android_webview/browser/deferred_gpu_command_service.h"
9 #include "android_webview/browser/parent_output_surface.h" 9 #include "android_webview/browser/parent_output_surface.h"
10 #include "android_webview/browser/shared_renderer_state.h" 10 #include "android_webview/browser/shared_renderer_state.h"
(...skipping 16 matching lines...) Expand all
27 #include "ui/gfx/geometry/rect_f.h" 27 #include "ui/gfx/geometry/rect_f.h"
28 #include "ui/gfx/transform.h" 28 #include "ui/gfx/transform.h"
29 #include "ui/gl/gl_bindings.h" 29 #include "ui/gl/gl_bindings.h"
30 #include "webkit/common/gpu/context_provider_in_process.h" 30 #include "webkit/common/gpu/context_provider_in_process.h"
31 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 31 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
32 32
33 namespace android_webview { 33 namespace android_webview {
34 34
35 namespace { 35 namespace {
36 36
37 using gpu_blink::WebGraphicsContext3DImpl;
37 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; 38 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
38 using webkit::gpu::WebGraphicsContext3DImpl;
39 39
40 scoped_refptr<cc::ContextProvider> CreateContext( 40 scoped_refptr<cc::ContextProvider> CreateContext(
41 scoped_refptr<gfx::GLSurface> surface, 41 scoped_refptr<gfx::GLSurface> surface,
42 scoped_refptr<gpu::InProcessCommandBuffer::Service> service) { 42 scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
43 const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu; 43 const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu;
44 44
45 blink::WebGraphicsContext3D::Attributes attributes; 45 blink::WebGraphicsContext3D::Attributes attributes;
46 attributes.antialias = false; 46 attributes.antialias = false;
47 attributes.depth = false; 47 attributes.depth = false;
48 attributes.stencil = false; 48 attributes.stencil = false;
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 268 }
269 269
270 void HardwareRenderer::UnusedResourcesAreAvailable() { 270 void HardwareRenderer::UnusedResourcesAreAvailable() {
271 cc::ReturnedResourceArray returned_resources; 271 cc::ReturnedResourceArray returned_resources;
272 resource_collection_->TakeUnusedResourcesForChildCompositor( 272 resource_collection_->TakeUnusedResourcesForChildCompositor(
273 &returned_resources); 273 &returned_resources);
274 shared_renderer_state_->InsertReturnedResourcesOnRT(returned_resources); 274 shared_renderer_state_->InsertReturnedResourcesOnRT(returned_resources);
275 } 275 }
276 276
277 } // namespace android_webview 277 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/android_webview.gyp ('k') | content/browser/android/in_process/synchronous_compositor_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698