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

Side by Side Diff: webkit/common/gpu/context_provider_in_process.cc

Issue 16046003: Move webkit/gpu into webkit/common/gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in content/common/gpu/client/gl_helper_* Created 7 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "webkit/gpu/context_provider_in_process.h" 5 #include "webkit/common/gpu/context_provider_in_process.h"
6 6
7 #include "webkit/gpu/grcontext_for_webgraphicscontext3d.h" 7 #include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
8 8
9 namespace webkit { 9 namespace webkit {
10 namespace gpu { 10 namespace gpu {
11 11
12 class ContextProviderInProcess::LostContextCallbackProxy 12 class ContextProviderInProcess::LostContextCallbackProxy
13 : public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback { 13 : public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback {
14 public: 14 public:
15 explicit LostContextCallbackProxy(ContextProviderInProcess* provider) 15 explicit LostContextCallbackProxy(ContextProviderInProcess* provider)
16 : provider_(provider) { 16 : provider_(provider) {
17 provider_->context3d_->setContextLostCallback(this); 17 provider_->context3d_->setContextLostCallback(this);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 void ContextProviderInProcess::OnMemoryAllocationChanged( 127 void ContextProviderInProcess::OnMemoryAllocationChanged(
128 bool nonzero_allocation) { 128 bool nonzero_allocation) {
129 if (gr_context_) 129 if (gr_context_)
130 gr_context_->SetMemoryLimit(nonzero_allocation); 130 gr_context_->SetMemoryLimit(nonzero_allocation);
131 } 131 }
132 132
133 } // namespace gpu 133 } // namespace gpu
134 } // namespace webkit 134 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.h ('k') | webkit/common/gpu/gl_bindings_skia_cmd_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698