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

Side by Side Diff: android_webview/browser/parent_output_surface.cc

Issue 2002303002: Consolidate OutputSurface constructors into GL vs Vulkan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: outputsurface-constructors: rebase-and-fixcrash Created 4 years, 7 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
« no previous file with comments | « no previous file | blimp/client/feature/compositor/blimp_output_surface.h » ('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 "android_webview/browser/parent_output_surface.h" 5 #include "android_webview/browser/parent_output_surface.h"
6 6
7 #include "cc/output/output_surface_client.h" 7 #include "cc/output/output_surface_client.h"
8 #include "gpu/command_buffer/client/gles2_interface.h" 8 #include "gpu/command_buffer/client/gles2_interface.h"
9 9
10 namespace android_webview { 10 namespace android_webview {
11 11
12 ParentOutputSurface::ParentOutputSurface( 12 ParentOutputSurface::ParentOutputSurface(
13 scoped_refptr<cc::ContextProvider> context_provider) 13 scoped_refptr<cc::ContextProvider> context_provider)
14 : cc::OutputSurface(context_provider) { 14 : cc::OutputSurface(std::move(context_provider), nullptr, nullptr) {
15 stencil_state_.stencil_test_enabled = false; 15 stencil_state_.stencil_test_enabled = false;
16 } 16 }
17 17
18 ParentOutputSurface::~ParentOutputSurface() { 18 ParentOutputSurface::~ParentOutputSurface() {
19 } 19 }
20 20
21 void ParentOutputSurface::DidLoseOutputSurface() { 21 void ParentOutputSurface::DidLoseOutputSurface() {
22 // Android WebView does not handle context loss. 22 // Android WebView does not handle context loss.
23 LOG(FATAL) << "Render thread context loss"; 23 LOG(FATAL) << "Render thread context loss";
24 } 24 }
(...skipping 28 matching lines...) Expand all
53 stencil_state_.stencil_back_z_fail_op, 53 stencil_state_.stencil_back_z_fail_op,
54 stencil_state_.stencil_back_z_pass_op); 54 stencil_state_.stencil_back_z_pass_op);
55 } 55 }
56 56
57 void ParentOutputSurface::SetGLState(const ScopedAppGLStateRestore& gl_state) { 57 void ParentOutputSurface::SetGLState(const ScopedAppGLStateRestore& gl_state) {
58 stencil_state_ = gl_state.stencil_state(); 58 stencil_state_ = gl_state.stencil_state();
59 SetExternalStencilTest(stencil_state_.stencil_test_enabled); 59 SetExternalStencilTest(stencil_state_.stencil_test_enabled);
60 } 60 }
61 61
62 } // namespace android_webview 62 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | blimp/client/feature/compositor/blimp_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698