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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1809553002: blink: Remove unused or rarely used methods from WebGraphicsContext3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wgc3d
Patch Set: wgc3d-unused: WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture Created 4 years, 9 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 (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 "content/browser/renderer_host/render_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 limits.mapped_memory_reclaim_limit = 204 limits.mapped_memory_reclaim_limit =
205 WebGraphicsContext3DCommandBufferImpl::kNoLimit; 205 WebGraphicsContext3DCommandBufferImpl::kNoLimit;
206 bool lose_context_when_out_of_memory = false; 206 bool lose_context_when_out_of_memory = false;
207 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( 207 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context(
208 new WebGraphicsContext3DCommandBufferImpl( 208 new WebGraphicsContext3DCommandBufferImpl(
209 gpu::kNullSurfaceHandle, // offscreen 209 gpu::kNullSurfaceHandle, // offscreen
210 url, gpu_channel_host.get(), attrs, lose_context_when_out_of_memory, 210 url, gpu_channel_host.get(), attrs, lose_context_when_out_of_memory,
211 limits, nullptr)); 211 limits, nullptr));
212 context->SetContextType(BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT); 212 context->SetContextType(BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
213 if (context->InitializeOnCurrentThread()) { 213 if (context->InitializeOnCurrentThread()) {
214 context->traceBeginCHROMIUM( 214 context->GetImplementation()->TraceBeginCHROMIUM(
215 "gpu_toplevel", 215 "gpu_toplevel",
216 base::StringPrintf("CmdBufferImageTransportFactory-%p", 216 base::StringPrintf("CmdBufferImageTransportFactory-%p", context.get())
217 context.get()).c_str()); 217 .c_str());
218 } else { 218 } else {
219 context.reset(); 219 context.reset();
220 } 220 }
221 221
222 return context; 222 return context;
223 } 223 }
224 224
225 // This can only be used for readback postprocessing. It may return null if the 225 // This can only be used for readback postprocessing. It may return null if the
226 // channel was lost and not reestablished yet. 226 // channel was lost and not reestablished yet.
227 GLHelper* GetPostReadbackGLHelper() { 227 GLHelper* GetPostReadbackGLHelper() {
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 results->orientationAngle = display.RotationAsDegree(); 2025 results->orientationAngle = display.RotationAsDegree();
2026 results->orientationType = 2026 results->orientationType =
2027 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2027 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2028 gfx::DeviceDisplayInfo info; 2028 gfx::DeviceDisplayInfo info;
2029 results->depth = info.GetBitsPerPixel(); 2029 results->depth = info.GetBitsPerPixel();
2030 results->depthPerComponent = info.GetBitsPerComponent(); 2030 results->depthPerComponent = info.GetBitsPerComponent();
2031 results->isMonochrome = (results->depthPerComponent == 0); 2031 results->isMonochrome = (results->depthPerComponent == 0);
2032 } 2032 }
2033 2033
2034 } // namespace content 2034 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698