| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |