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

Side by Side Diff: ppapi/shared_impl/ppb_instance_shared.cc

Issue 12047066: Reland: Add trace event Pepper API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 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 unified diff | Download patch
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/shared_impl/ppb_trace_event_impl.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 "ppapi/shared_impl/ppb_instance_shared.h" 5 #include "ppapi/shared_impl/ppb_instance_shared.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/debug/trace_event.h"
10 #include "base/threading/platform_thread.h"
9 #include "ppapi/c/pp_errors.h" 11 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/ppb_input_event.h" 12 #include "ppapi/c/ppb_input_event.h"
11 #include "ppapi/shared_impl/ppapi_globals.h" 13 #include "ppapi/shared_impl/ppapi_globals.h"
12 #include "ppapi/shared_impl/ppb_image_data_shared.h" 14 #include "ppapi/shared_impl/ppb_image_data_shared.h"
13 #include "ppapi/shared_impl/var.h" 15 #include "ppapi/shared_impl/var.h"
14 #include "ppapi/thunk/enter.h" 16 #include "ppapi/thunk/enter.h"
15 #include "ppapi/thunk/ppb_image_data_api.h" 17 #include "ppapi/thunk/ppb_image_data_api.h"
16 18
17 namespace ppapi { 19 namespace ppapi {
18 20
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return false; 94 return false;
93 95
94 // Validate the hot spot location. 96 // Validate the hot spot location.
95 if (hot_spot->x < 0 || hot_spot->x >= desc.size.width || 97 if (hot_spot->x < 0 || hot_spot->x >= desc.size.width ||
96 hot_spot->y < 0 || hot_spot->y >= desc.size.height) 98 hot_spot->y < 0 || hot_spot->y >= desc.size.height)
97 return false; 99 return false;
98 return true; 100 return true;
99 } 101 }
100 102
101 } // namespace ppapi 103 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/shared_impl/ppb_trace_event_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698