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

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix WebView build Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/native/aw_contents.h" 5 #include "android_webview/native/aw_contents.h"
6 6
7 #include "android_webview/browser/aw_browser_main_parts.h" 7 #include "android_webview/browser/aw_browser_main_parts.h"
8 #include "android_webview/browser/net_disk_cache_remover.h" 8 #include "android_webview/browser/net_disk_cache_remover.h"
9 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" 9 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h"
10 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h" 10 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void Composite() {} 113 virtual void Composite() {}
114 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE { 114 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE {
115 return 0; 115 return 0;
116 } 116 }
117 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size, 117 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size,
118 int data_size, 118 int data_size,
119 void* data) OVERRIDE { 119 void* data) OVERRIDE {
120 return 0; 120 return 0;
121 } 121 }
122 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE {} 122 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE {}
123 virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id, 123 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
124 gfx::JavaBitmap& bitmap) OVERRIDE {} 124 gfx::JavaBitmap& bitmap) OVERRIDE {
125 return false;
126 }
127 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
128 const gfx::Rect& src_rect,
129 gfx::JavaBitmap& bitmap) OVERRIDE {
130 return false;
131 }
125 virtual void SetHasTransparentBackground(bool flag) OVERRIDE {} 132 virtual void SetHasTransparentBackground(bool flag) OVERRIDE {}
126 }; 133 };
127 134
128 } // namespace 135 } // namespace
129 136
130 // static 137 // static
131 AwContents* AwContents::FromWebContents(WebContents* web_contents) { 138 AwContents* AwContents::FromWebContents(WebContents* web_contents) {
132 return AwContentsUserData::GetContents(web_contents); 139 return AwContentsUserData::GetContents(web_contents);
133 } 140 }
134 141
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 return; 744 return;
738 } 745 }
739 pending_contents_ = pending.Pass(); 746 pending_contents_ = pending.Pass();
740 } 747 }
741 748
742 jint AwContents::ReleasePopupWebContents(JNIEnv* env, jobject obj) { 749 jint AwContents::ReleasePopupWebContents(JNIEnv* env, jobject obj) {
743 return reinterpret_cast<jint>(pending_contents_.release()); 750 return reinterpret_cast<jint>(pending_contents_.release());
744 } 751 }
745 752
746 } // namespace android_webview 753 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698