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

Side by Side Diff: chrome/renderer/render_view.h

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « chrome/renderer/command_buffer_proxy.cc ('k') | chrome/renderer/render_view.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 // If ISO 639-1 code is not available for the language, ISO 639-2 3-letter cod e 462 // If ISO 639-1 code is not available for the language, ISO 639-2 3-letter cod e
463 // will be returned (e.g. kha for Khasi and und for undtermined). For traditio nal 463 // will be returned (e.g. kha for Khasi and und for undtermined). For traditio nal
464 // Chinse, 'zh-TW' will be returned while for simplified Chinse, 'zh' will be 464 // Chinse, 'zh-TW' will be returned while for simplified Chinse, 'zh' will be
465 // returned. 465 // returned.
466 // TODO(jungshik): Make it return 'he' (the correct ISO 639 code for Hebrew) 466 // TODO(jungshik): Make it return 'he' (the correct ISO 639 code for Hebrew)
467 // instead of the obsolete 'iw'. Perhaps, it's also better to return 'zh-Hans' 467 // instead of the obsolete 'iw'. Perhaps, it's also better to return 'zh-Hans'
468 // (or 'zh-CN') for Simplified Chinese instead of 'zh' to be aligned with 468 // (or 'zh-CN') for Simplified Chinese instead of 'zh' to be aligned with
469 // 'zh-TW' for Traditional Chinse. 469 // 'zh-TW' for Traditional Chinse.
470 std::string DetectLanguage(); 470 std::string DetectLanguage();
471 471
472 #if defined(OS_MACOSX)
473 // Helper routines for GPU plugin support. Used by the
474 // WebPluginDelegateProxy, which has a pointer to the RenderView.
475 gfx::PluginWindowHandle AllocateFakePluginWindowHandle();
476 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window);
477 void GPUPluginSetIOSurface(gfx::PluginWindowHandle window,
478 int32 width,
479 int32 height,
480 uint64 io_surface_identifier);
481 void GPUPluginBuffersSwapped(gfx::PluginWindowHandle window);
482 #endif
483
472 protected: 484 protected:
473 // RenderWidget overrides: 485 // RenderWidget overrides:
474 virtual void Close(); 486 virtual void Close();
475 virtual void OnResize(const gfx::Size& new_size, 487 virtual void OnResize(const gfx::Size& new_size,
476 const gfx::Rect& resizer_rect); 488 const gfx::Rect& resizer_rect);
477 virtual void DidPaint(); 489 virtual void DidPaint();
478 virtual void DidHandleKeyEvent(); 490 virtual void DidHandleKeyEvent();
479 #if OS_MACOSX 491 #if OS_MACOSX
480 virtual void OnWasHidden(); 492 virtual void OnWasHidden();
481 virtual void OnWasRestored(bool needs_repainting); 493 virtual void OnWasRestored(bool needs_repainting);
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 // All the currently active plugin delegates for this RenderView; kept so that 1086 // All the currently active plugin delegates for this RenderView; kept so that
1075 // we can enumerate them to send updates about things like window location 1087 // we can enumerate them to send updates about things like window location
1076 // or tab focus and visibily. These are non-owning references. 1088 // or tab focus and visibily. These are non-owning references.
1077 std::set<WebPluginDelegateProxy*> plugin_delegates_; 1089 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1078 #endif 1090 #endif
1079 1091
1080 DISALLOW_COPY_AND_ASSIGN(RenderView); 1092 DISALLOW_COPY_AND_ASSIGN(RenderView);
1081 }; 1093 };
1082 1094
1083 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1095 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/command_buffer_proxy.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698