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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 116693005: Ignore offset parameter in encode callback. It is ignored/deprecated by the caller, and bitmap.pixe… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index 38c75f5728a695e4e21b463cb4d647ef72548241..aea4e12bbb7ade2005f124ff98269af90b1b4f52 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -46,12 +46,13 @@ using blink::WebView;
const char kGpuBenchmarkingExtensionName[] = "v8/GpuBenchmarking";
+// offset parameter is deprecated/ignored, and will be remove from the
+// signature in a future skia release.
jamesr 2014/01/07 21:23:16 could you add a TODO with a link to a bug tracking
reed1 2014/01/07 21:28:31 Done.
static SkData* EncodeBitmapToData(size_t* offset, const SkBitmap& bm) {
SkPixelRef* pr = bm.pixelRef();
if (pr != NULL) {
SkData* data = pr->refEncodedData();
if (data != NULL) {
jamesr 2014/01/07 21:23:16 remove the { }s as well since this is now a one-li
reed1 2014/01/07 21:28:31 Done.
- *offset = bm.pixelRefOffset();
return data;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698