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

Side by Side Diff: ui/gfx/ipc/gfx_param_traits.cc

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
« no previous file with comments | « ui/gfx/ipc/gfx_param_traits.h ('k') | ui/gfx/ipc/gfx_param_traits_macros.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 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 "ui/gfx/ipc/gfx_param_traits.h" 5 #include "ui/gfx/ipc/gfx_param_traits.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 return false; 280 return false;
281 r->set_start(start); 281 r->set_start(start);
282 r->set_end(end); 282 r->set_end(end);
283 return true; 283 return true;
284 } 284 }
285 285
286 void ParamTraits<gfx::Range>::Log(const gfx::Range& r, std::string* l) { 286 void ParamTraits<gfx::Range>::Log(const gfx::Range& r, std::string* l) {
287 l->append(base::StringPrintf("(%" PRIuS ", %" PRIuS ")", r.start(), r.end())); 287 l->append(base::StringPrintf("(%" PRIuS ", %" PRIuS ")", r.start(), r.end()));
288 } 288 }
289 289
290 } // namespace IPC
290 291
292 // Generate param traits write methods.
293 #include "ipc/param_traits_write_macros.h"
294 namespace IPC {
295 #undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
296 #include "ui/gfx/ipc/gfx_param_traits_macros.h"
291 } // namespace IPC 297 } // namespace IPC
298
299 // Generate param traits read methods.
300 #include "ipc/param_traits_read_macros.h"
301 namespace IPC {
302 #undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
303 #include "ui/gfx/ipc/gfx_param_traits_macros.h"
304 } // namespace IPC
305
306 // Generate param traits log methods.
307 #include "ipc/param_traits_log_macros.h"
308 namespace IPC {
309 #undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
310 #include "ui/gfx/ipc/gfx_param_traits_macros.h"
311 } // namespace IPC
OLDNEW
« no previous file with comments | « ui/gfx/ipc/gfx_param_traits.h ('k') | ui/gfx/ipc/gfx_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698