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

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

Issue 226363004: Global GPU memory manager for android webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary code Created 6 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
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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 content::SynchronousCompositor* compositor) { 49 content::SynchronousCompositor* compositor) {
50 DCHECK(ui_loop_->BelongsToCurrentThread()); 50 DCHECK(ui_loop_->BelongsToCurrentThread());
51 compositor_ = compositor; 51 compositor_ = compositor;
52 } 52 }
53 53
54 content::SynchronousCompositor* SharedRendererState::GetCompositor() { 54 content::SynchronousCompositor* SharedRendererState::GetCompositor() {
55 DCHECK(compositor_); 55 DCHECK(compositor_);
56 return compositor_; 56 return compositor_;
57 } 57 }
58 58
59 void SharedRendererState::SetMemoryPolicy(
60 const content::SynchronousCompositorMemoryPolicy new_policy) {
61 memory_policy_ = new_policy;
62 }
63
64 content::SynchronousCompositorMemoryPolicy
65 SharedRendererState::GetMemoryPolicy() const {
66 return memory_policy_;
67 }
68
59 void SharedRendererState::SetDrawGLInput(const DrawGLInput& input) { 69 void SharedRendererState::SetDrawGLInput(const DrawGLInput& input) {
60 draw_gl_input_ = input; 70 draw_gl_input_ = input;
61 } 71 }
62 72
63 DrawGLInput SharedRendererState::GetDrawGLInput() const { 73 DrawGLInput SharedRendererState::GetDrawGLInput() const {
64 return draw_gl_input_; 74 return draw_gl_input_;
65 } 75 }
66 76
67 } // namespace android_webview 77 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698