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

Side by Side Diff: cc/output/software_renderer.cc

Issue 1035863002: Remove SetDrawViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetupViewport > SetViewport Created 5 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
« no previous file with comments | « cc/output/software_renderer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/output/software_renderer.h" 5 #include "cc/output/software_renderer.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
10 #include "cc/output/compositor_frame_ack.h" 10 #include "cc/output/compositor_frame_ack.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 EnsureScissorTestDisabled(); 222 EnsureScissorTestDisabled();
223 ClearFramebuffer(frame); 223 ClearFramebuffer(frame);
224 break; 224 break;
225 case SURFACE_INITIALIZATION_MODE_SCISSORED_CLEAR: 225 case SURFACE_INITIALIZATION_MODE_SCISSORED_CLEAR:
226 SetScissorTestRect(render_pass_scissor); 226 SetScissorTestRect(render_pass_scissor);
227 ClearFramebuffer(frame); 227 ClearFramebuffer(frame);
228 break; 228 break;
229 } 229 }
230 } 230 }
231 231
232 void SoftwareRenderer::SetDrawViewport(
233 const gfx::Rect& window_space_viewport) {}
234
235 bool SoftwareRenderer::IsSoftwareResource( 232 bool SoftwareRenderer::IsSoftwareResource(
236 ResourceProvider::ResourceId resource_id) const { 233 ResourceProvider::ResourceId resource_id) const {
237 switch (resource_provider_->GetResourceType(resource_id)) { 234 switch (resource_provider_->GetResourceType(resource_id)) {
238 case ResourceProvider::RESOURCE_TYPE_GL_TEXTURE: 235 case ResourceProvider::RESOURCE_TYPE_GL_TEXTURE:
239 return false; 236 return false;
240 case ResourceProvider::RESOURCE_TYPE_BITMAP: 237 case ResourceProvider::RESOURCE_TYPE_BITMAP:
241 return true; 238 return true;
242 case ResourceProvider::RESOURCE_TYPE_INVALID: 239 case ResourceProvider::RESOURCE_TYPE_INVALID:
243 break; 240 break;
244 } 241 }
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 } 651 }
655 652
656 void SoftwareRenderer::DidChangeVisibility() { 653 void SoftwareRenderer::DidChangeVisibility() {
657 if (visible()) 654 if (visible())
658 EnsureBackbuffer(); 655 EnsureBackbuffer();
659 else 656 else
660 DiscardBackbuffer(); 657 DiscardBackbuffer();
661 } 658 }
662 659
663 } // namespace cc 660 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/software_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698