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

Side by Side Diff: content/renderer/webgraphicscontext3d_command_buffer_impl.cc

Issue 6713005: Move a bunch of gpu/worker/plugin renderer code to content. I temporarily disabled the sad plugi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" 7 #include "content/renderer/webgraphicscontext3d_command_buffer_impl.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #ifndef GL_GLEXT_PROTOTYPES 10 #ifndef GL_GLEXT_PROTOTYPES
11 #define GL_GLEXT_PROTOTYPES 1 11 #define GL_GLEXT_PROTOTYPES 1
12 #endif 12 #endif
13 #include <GLES2/gl2ext.h> 13 #include <GLES2/gl2ext.h>
14 14
15 #include <algorithm> 15 #include <algorithm>
16 16
17 #include "base/string_tokenizer.h" 17 #include "base/string_tokenizer.h"
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/metrics/histogram.h" 20 #include "base/metrics/histogram.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 #include "chrome/renderer/gpu_channel_host.h"
23 #include "chrome/renderer/render_thread.h" 22 #include "chrome/renderer/render_thread.h"
24 #include "chrome/renderer/render_view.h" 23 #include "chrome/renderer/render_view.h"
24 #include "content/renderer/gpu_channel_host.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
26 26
27 WebGraphicsContext3DCommandBufferImpl::WebGraphicsContext3DCommandBufferImpl() 27 WebGraphicsContext3DCommandBufferImpl::WebGraphicsContext3DCommandBufferImpl()
28 : context_(NULL), 28 : context_(NULL),
29 web_view_(NULL), 29 web_view_(NULL),
30 #if defined(OS_MACOSX) 30 #if defined(OS_MACOSX)
31 plugin_handle_(NULL), 31 plugin_handle_(NULL),
32 #endif // defined(OS_MACOSX) 32 #endif // defined(OS_MACOSX)
33 context_lost_callback_(0), 33 context_lost_callback_(0),
34 cached_width_(0), 34 cached_width_(0),
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 context_lost_callback_ = cb; 1014 context_lost_callback_ = cb;
1015 } 1015 }
1016 1016
1017 void WebGraphicsContext3DCommandBufferImpl::OnContextLost() { 1017 void WebGraphicsContext3DCommandBufferImpl::OnContextLost() {
1018 if (context_lost_callback_) { 1018 if (context_lost_callback_) {
1019 context_lost_callback_->onContextLost(); 1019 context_lost_callback_->onContextLost();
1020 } 1020 }
1021 } 1021 }
1022 1022
1023 #endif // defined(ENABLE_GPU) 1023 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « content/renderer/webgraphicscontext3d_command_buffer_impl.h ('k') | content/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698