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

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

Issue 368273008: [WebView] Fix issue with transparent background. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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/shared_renderer_state.h" 5 #include "android_webview/browser/shared_renderer_state.h"
6 6
7 #include "android_webview/browser/browser_view_renderer_client.h" 7 #include "android_webview/browser/browser_view_renderer_client.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 DrawGLInput::DrawGLInput() : width(0), height(0), 13 DrawGLInput::DrawGLInput() : width(0), height(0) {
14 has_transparent_background(false) {
15 } 14 }
16 15
17 DrawGLInput::~DrawGLInput() { 16 DrawGLInput::~DrawGLInput() {
18 } 17 }
19 18
20 SharedRendererState::SharedRendererState( 19 SharedRendererState::SharedRendererState(
21 scoped_refptr<base::MessageLoopProxy> ui_loop, 20 scoped_refptr<base::MessageLoopProxy> ui_loop,
22 BrowserViewRendererClient* client) 21 BrowserViewRendererClient* client)
23 : ui_loop_(ui_loop), 22 : ui_loop_(ui_loop),
24 client_on_ui_(client), 23 client_on_ui_(client),
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 base::AutoLock lock(lock_); 97 base::AutoLock lock(lock_);
99 resources->swap(returned_resources_); 98 resources->swap(returned_resources_);
100 } 99 }
101 100
102 bool SharedRendererState::ReturnedResourcesEmpty() const { 101 bool SharedRendererState::ReturnedResourcesEmpty() const {
103 base::AutoLock lock(lock_); 102 base::AutoLock lock(lock_);
104 return returned_resources_.empty(); 103 return returned_resources_.empty();
105 } 104 }
106 105
107 } // namespace android_webview 106 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/shared_renderer_state.h ('k') | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698