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

Side by Side Diff: ppapi/example/example.cc

Issue 9122012: gcl change rev (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/paint_manager.cc ('k') | ppapi/examples/2d/paint_manager_example.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <math.h> 5 #include <math.h>
6 #include <stdio.h> // FIXME(brettw) erase me. 6 #include <stdio.h> // FIXME(brettw) erase me.
7 #ifndef _WIN32 7 #ifndef _WIN32
8 #include <sys/time.h> 8 #include <sys/time.h>
9 #else 9 #else
10 #include <windows.h> 10 #include <windows.h>
(...skipping 14 matching lines...) Expand all
25 #include "ppapi/cpp/image_data.h" 25 #include "ppapi/cpp/image_data.h"
26 #include "ppapi/cpp/input_event.h" 26 #include "ppapi/cpp/input_event.h"
27 #include "ppapi/cpp/private/instance_private.h" 27 #include "ppapi/cpp/private/instance_private.h"
28 #include "ppapi/cpp/module.h" 28 #include "ppapi/cpp/module.h"
29 #include "ppapi/cpp/private/var_private.h" 29 #include "ppapi/cpp/private/var_private.h"
30 #include "ppapi/cpp/rect.h" 30 #include "ppapi/cpp/rect.h"
31 #include "ppapi/cpp/url_loader.h" 31 #include "ppapi/cpp/url_loader.h"
32 #include "ppapi/cpp/url_request_info.h" 32 #include "ppapi/cpp/url_request_info.h"
33 #include "ppapi/cpp/var.h" 33 #include "ppapi/cpp/var.h"
34 #include "ppapi/cpp/view.h" 34 #include "ppapi/cpp/view.h"
35 #include "ppapi/utility/completion_callback_factory.h"
35 36
36 static const int kStepsPerCircle = 800; 37 static const int kStepsPerCircle = 800;
37 38
38 void FlushCallback(void* data, int32_t result); 39 void FlushCallback(void* data, int32_t result);
39 40
40 void FillRect(pp::ImageData* image, int left, int top, int width, int height, 41 void FillRect(pp::ImageData* image, int left, int top, int width, int height,
41 uint32_t color) { 42 uint32_t color) {
42 for (int y = std::max(0, top); 43 for (int y = std::max(0, top);
43 y < std::min(image->size().height() - 1, top + height); 44 y < std::min(image->size().height() - 1, top + height);
44 y++) { 45 y++) {
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 }; 495 };
495 496
496 namespace pp { 497 namespace pp {
497 498
498 // Factory function for your specialization of the Module object. 499 // Factory function for your specialization of the Module object.
499 Module* CreateModule() { 500 Module* CreateModule() {
500 return new MyModule(); 501 return new MyModule();
501 } 502 }
502 503
503 } // namespace pp 504 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/paint_manager.cc ('k') | ppapi/examples/2d/paint_manager_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698